summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.h
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-07-10 04:07:28 -0700
committer Shih-wei Liao <sliao@google.com> 2012-07-11 10:26:43 -0700
commit1258417d54c85a2cbb98267b397c238070f28338 (patch)
treeaf89aa0abba0df86b5f942b25ae50e6613ef4265 /src/compiler_llvm/method_compiler.h
parentf1f863695b28f630abb772f50170fefaddc2fb91 (diff)
Code cleanup: Use "const T*" instead of "T const*"
Change-Id: I97d205df7d659e5670009df21b8c20b1d8224133
Diffstat (limited to 'src/compiler_llvm/method_compiler.h')
-rw-r--r--src/compiler_llvm/method_compiler.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h
index 41c43f0ad8..dbdcb52ade 100644
--- a/src/compiler_llvm/method_compiler.h
+++ b/src/compiler_llvm/method_compiler.h
@@ -94,7 +94,7 @@ class MethodCompiler {
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 @@ class MethodCompiler {
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 @@ class MethodCompiler {
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 @@ class MethodCompiler {
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 @@ class MethodCompiler {
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_;