diff options
| author | 2012-07-10 04:07:28 -0700 | |
|---|---|---|
| committer | 2012-07-11 10:26:43 -0700 | |
| commit | 1258417d54c85a2cbb98267b397c238070f28338 (patch) | |
| tree | af89aa0abba0df86b5f942b25ae50e6613ef4265 /src/compiler_llvm/compilation_unit.cc | |
| parent | f1f863695b28f630abb772f50170fefaddc2fb91 (diff) | |
Code cleanup: Use "const T*" instead of "T const*"
Change-Id: I97d205df7d659e5670009df21b8c20b1d8224133
Diffstat (limited to 'src/compiler_llvm/compilation_unit.cc')
| -rw-r--r-- | src/compiler_llvm/compilation_unit.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc index 8aae161fcb..f84ebf4876 100644 --- a/src/compiler_llvm/compilation_unit.cc +++ b/src/compiler_llvm/compilation_unit.cc @@ -221,9 +221,9 @@ bool CompilationUnit::MaterializeToString(std::string& str_buffer) { bool CompilationUnit::MaterializeToRawOStream(llvm::raw_ostream& out_stream) { // Lookup the LLVM target - char const* target_triple = NULL; - char const* target_cpu = ""; - char const* target_attr = NULL; + const char* target_triple = NULL; + const char* target_cpu = ""; + const char* target_attr = NULL; InstructionSet insn_set = GetInstructionSet(); switch (insn_set) { @@ -256,7 +256,7 @@ bool CompilationUnit::MaterializeToRawOStream(llvm::raw_ostream& out_stream) { } std::string errmsg; - llvm::Target const* target = + const llvm::Target* target = llvm::TargetRegistry::lookupTarget(target_triple, errmsg); CHECK(target != NULL) << errmsg; @@ -278,7 +278,7 @@ bool CompilationUnit::MaterializeToRawOStream(llvm::raw_ostream& out_stream) { CHECK(target_machine.get() != NULL) << "Failed to create target machine"; // Add target data - llvm::TargetData const* target_data = target_machine->getTargetData(); + const llvm::TargetData* target_data = target_machine->getTargetData(); // PassManager for code generation passes llvm::PassManager pm; |