Code cleanup: Use "const T*" instead of "T const*"
Change-Id: I97d205df7d659e5670009df21b8c20b1d8224133
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc
index 8aae161..f84ebf4 100644
--- a/src/compiler_llvm/compilation_unit.cc
+++ b/src/compiler_llvm/compilation_unit.cc
@@ -221,9 +221,9 @@
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 @@
}
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 @@
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;