diff options
| author | Carl Shapiro <cshapiro@google.com> | 2010-05-20 22:54:18 -0700 |
|---|---|---|
| committer | Carl Shapiro <cshapiro@google.com> | 2010-05-21 16:17:32 -0700 |
| commit | e3c01dac83e6eea7f82fe81ed89cfbdd9791dbc9 (patch) | |
| tree | 5ac4bca0a836db33243aeb22ba5d49aadcba2d58 /vm/compiler/codegen/arm/RallocUtil.c | |
| parent | 2b908f67d0150c11057497f0dc551e3369105184 (diff) | |
Remove unused labels, variables, and functions. Enable warnings.
Change-Id: Icbe24eaf1ad499f28b68b6a5f05368271a0a7e86
Diffstat (limited to 'vm/compiler/codegen/arm/RallocUtil.c')
| -rw-r--r-- | vm/compiler/codegen/arm/RallocUtil.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vm/compiler/codegen/arm/RallocUtil.c b/vm/compiler/codegen/arm/RallocUtil.c index e357ba672..80ce96820 100644 --- a/vm/compiler/codegen/arm/RallocUtil.c +++ b/vm/compiler/codegen/arm/RallocUtil.c @@ -463,14 +463,6 @@ extern void dvmCompilerLockTemp(CompilationUnit *cUnit, int reg) dvmCompilerAbort(cUnit); } -static void lockArgRegs(CompilationUnit *cUnit) -{ - dvmCompilerLockTemp(cUnit, r0); - dvmCompilerLockTemp(cUnit, r1); - dvmCompilerLockTemp(cUnit, r2); - dvmCompilerLockTemp(cUnit, r3); -} - /* Clobber all regs that might be used by an external C call */ extern void dvmCompilerClobberCallRegs(CompilationUnit *cUnit) { @@ -698,12 +690,6 @@ extern void dvmCompilerMarkPair(CompilationUnit *cUnit, int lowReg, int highReg) infoHi->partner = lowReg; } -static void markRegSingle(CompilationUnit *cUnit, int reg) -{ - RegisterInfo *info = getRegInfo(cUnit, reg); - info->pair = false; -} - extern void dvmCompilerMarkClean(CompilationUnit *cUnit, int reg) { RegisterInfo *info = getRegInfo(cUnit, reg); @@ -722,13 +708,6 @@ extern void dvmCompilerMarkInUse(CompilationUnit *cUnit, int reg) info->inUse = true; } -/* Return true if live & dirty */ -static bool isDirty(CompilationUnit *cUnit, int reg) -{ - RegisterInfo *info = getRegInfo(cUnit, reg); - return (info && info->live && info->dirty); -} - void copyRegInfo(CompilationUnit *cUnit, int newReg, int oldReg) { RegisterInfo *newInfo = getRegInfo(cUnit, newReg); @@ -870,7 +849,6 @@ static RegLocation evalLocWide(CompilationUnit *cUnit, RegLocation loc, extern RegLocation dvmCompilerEvalLoc(CompilationUnit *cUnit, RegLocation loc, int regClass, bool update) { - RegisterInfo *infoLo = NULL; int newReg; if (loc.wide) return evalLocWide(cUnit, loc, regClass, update); |
