Code cleanup: Use "const T*" instead of "T const*"
Change-Id: I97d205df7d659e5670009df21b8c20b1d8224133
diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h
index 41c43f0..dbdcb52 100644
--- a/src/compiler_llvm/method_compiler.h
+++ b/src/compiler_llvm/method_compiler.h
@@ -94,7 +94,7 @@
void EmitPrologueAllocShadowFrame();
void EmitPrologueAssignArgRegister();
void EmitInstructions();
- void EmitInstruction(uint32_t dex_pc, Instruction const* insn);
+ void EmitInstruction(uint32_t dex_pc, const Instruction* insn);
enum CondBranchKind {
kCondBranch_EQ,
@@ -135,7 +135,7 @@
kArgRange,
};
-#define GEN_INSN_ARGS uint32_t dex_pc, Instruction const* insn
+#define GEN_INSN_ARGS uint32_t dex_pc, const Instruction* insn
// NOP, PAYLOAD (unreachable) instructions
void EmitInsn_Nop(GEN_INSN_ARGS);
@@ -364,7 +364,7 @@
RegCategory GetInferredRegCategory(uint32_t dex_pc, uint16_t reg);
- InferredRegCategoryMap const* GetInferredRegCategoryMap();
+ const InferredRegCategoryMap* GetInferredRegCategoryMap();
bool IsRegCanBeObject(uint16_t reg_idx);
@@ -375,7 +375,7 @@
llvm::BasicBlock* GetNextBasicBlock(uint32_t dex_pc);
llvm::BasicBlock* CreateBasicBlockWithDexPC(uint32_t dex_pc,
- char const* postfix = NULL);
+ const char* postfix = NULL);
int32_t GetTryItemOffset(uint32_t dex_pc);
@@ -442,11 +442,11 @@
Compiler* compiler_;
ClassLinker* class_linker_;
- ClassLoader const* class_loader_;
+ const ClassLoader* class_loader_;
- DexFile const* dex_file_;
+ const DexFile* dex_file_;
DexCache* dex_cache_;
- DexFile::CodeItem const* code_item_;
+ const DexFile::CodeItem* code_item_;
OatCompilationUnit* oat_compilation_unit_;