diff options
author | Elliott Hughes <enh@google.com> | 2012-04-20 18:48:18 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-04-20 18:57:19 -0700 |
commit | 7b9d996e4cd7d154bb1a244d67139aff0c363cf2 (patch) | |
tree | a9dabe8f910b4b8bf29c2f4285d860995e25f58d /src/compiler/codegen | |
parent | 934100aea5a0f498c17e2c4a1fd0193af1557b42 (diff) | |
download | android_art-7b9d996e4cd7d154bb1a244d67139aff0c363cf2.tar.gz android_art-7b9d996e4cd7d154bb1a244d67139aff0c363cf2.tar.bz2 android_art-7b9d996e4cd7d154bb1a244d67139aff0c363cf2.zip |
Tidy up some C-isms.
Change-Id: I53b457cab9067369320457549071fc3e4c23c81b
Diffstat (limited to 'src/compiler/codegen')
-rw-r--r-- | src/compiler/codegen/GenInvoke.cc | 2 | ||||
-rw-r--r-- | src/compiler/codegen/Optimizer.h | 3 | ||||
-rw-r--r-- | src/compiler/codegen/Ralloc.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler/codegen/GenInvoke.cc b/src/compiler/codegen/GenInvoke.cc index a904419138..b986e785b3 100644 --- a/src/compiler/codegen/GenInvoke.cc +++ b/src/compiler/codegen/GenInvoke.cc @@ -884,7 +884,7 @@ bool genIntrinsic(CompilationUnit* cUnit, BasicBlock* bb, MIR* mir, * method. By doing this during basic block construction, we can also * take advantage of/generate new useful dataflow info. */ - std::string tgtMethod = PrettyMethod(mir->dalvikInsn.vB, *cUnit->dex_file); + std::string tgtMethod(PrettyMethod(mir->dalvikInsn.vB, *cUnit->dex_file)); if (tgtMethod.compare("char java.lang.String.charAt(int)") == 0) { return genInlinedCharAt(cUnit, bb, mir, type, isRange); } diff --git a/src/compiler/codegen/Optimizer.h b/src/compiler/codegen/Optimizer.h index 06c77320c6..94b1907ef1 100644 --- a/src/compiler/codegen/Optimizer.h +++ b/src/compiler/codegen/Optimizer.h @@ -25,8 +25,7 @@ namespace art { struct CompilationUnit; struct LIR; -void oatApplyLocalOptimizations(struct CompilationUnit* cUnit, - struct LIR* head, struct LIR* tail); +void oatApplyLocalOptimizations(CompilationUnit* cUnit, LIR* head, LIR* tail); } // namespace art diff --git a/src/compiler/codegen/Ralloc.h b/src/compiler/codegen/Ralloc.h index 21690821a8..671dffed2f 100644 --- a/src/compiler/codegen/Ralloc.h +++ b/src/compiler/codegen/Ralloc.h @@ -95,7 +95,7 @@ extern void oatResetDef(CompilationUnit* cUnit, int reg); extern void oatResetDefLoc(CompilationUnit* cUnit, RegLocation rl); /* Set up temp & preserved register pools specialized by target */ -extern void oatInitPool(struct RegisterInfo* regs, int* regNums, int num); +extern void oatInitPool(RegisterInfo* regs, int* regNums, int num); /* * Mark the beginning and end LIR of a def sequence. Note that |