summaryrefslogtreecommitdiffstats
path: root/vm/compiler/Utility.c
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2010-05-20 22:54:18 -0700
committerCarl Shapiro <cshapiro@google.com>2010-05-21 16:17:32 -0700
commite3c01dac83e6eea7f82fe81ed89cfbdd9791dbc9 (patch)
tree5ac4bca0a836db33243aeb22ba5d49aadcba2d58 /vm/compiler/Utility.c
parent2b908f67d0150c11057497f0dc551e3369105184 (diff)
downloadandroid_dalvik-e3c01dac83e6eea7f82fe81ed89cfbdd9791dbc9.tar.gz
android_dalvik-e3c01dac83e6eea7f82fe81ed89cfbdd9791dbc9.tar.bz2
android_dalvik-e3c01dac83e6eea7f82fe81ed89cfbdd9791dbc9.zip
Remove unused labels, variables, and functions. Enable warnings.
Change-Id: Icbe24eaf1ad499f28b68b6a5f05368271a0a7e86
Diffstat (limited to 'vm/compiler/Utility.c')
-rw-r--r--vm/compiler/Utility.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/compiler/Utility.c b/vm/compiler/Utility.c
index cb5a70299..1aff02bec 100644
--- a/vm/compiler/Utility.c
+++ b/vm/compiler/Utility.c
@@ -159,7 +159,6 @@ static int dumpMethodStats(void *compilerMethodStats, void *totalMethodStats)
(CompilerMethodStats *) compilerMethodStats;
CompilerMethodStats *totalStats =
(CompilerMethodStats *) totalMethodStats;
- const Method *method = methodStats->method;
totalStats->dalvikSize += methodStats->dalvikSize;
totalStats->compiledDalvikSize += methodStats->compiledDalvikSize;
@@ -172,7 +171,8 @@ static int dumpMethodStats(void *compilerMethodStats, void *totalMethodStats)
/* If over 3/4 of the Dalvik code is compiled, print something */
if (methodStats->compiledDalvikSize >= limit) {
LOGD("Method stats: %s%s, %d/%d (compiled/total Dalvik), %d (native)",
- method->clazz->descriptor, method->name,
+ methodStats->method->clazz->descriptor,
+ methodStats->method->name,
methodStats->compiledDalvikSize,
methodStats->dalvikSize,
methodStats->nativeSize);