summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compiler_llvm.cc
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2011-12-09 09:29:50 +0800
committer Shih-wei Liao <sliao@google.com> 2012-02-15 11:44:11 -0800
commit83426160568b62b22a1f1559cace78b5152c7749 (patch)
tree32116b8210d81cdfc8be9a38c111a4a3ab0232fc /src/compiler_llvm/compiler_llvm.cc
parent4c1f425f62a21e181a437ec45520167332344917 (diff)
Cleanup "Beginning of LLVM backend for ART."
Change-Id: I290e4d46b880256b6bf2eae7b3c828ee8d7595f2
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
-rw-r--r--src/compiler_llvm/compiler_llvm.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc
index c0f5881438..10aaca4adb 100644
--- a/src/compiler_llvm/compiler_llvm.cc
+++ b/src/compiler_llvm/compiler_llvm.cc
@@ -27,8 +27,8 @@
#include <llvm/Module.h>
#include <llvm/Support/ToolOutputFile.h>
-using namespace art;
-using namespace art::compiler_llvm;
+namespace art {
+namespace compiler_llvm {
CompilerLLVM::CompilerLLVM(Compiler* compiler, InstructionSet insn_set)
@@ -49,7 +49,8 @@ CompilerLLVM::~CompilerLLVM() {
void CompilerLLVM::MaterializeLLVMModule() {
#if !defined(NDEBUG)
- // TODO: For device, need to use another temporary path.
+ // TODO: Add options to JNI_CreateJavaVM() and dex2oat, so that we don't
+ // have to hard-code the path.
WriteBitcodeToFile("/tmp/art_llvm_module.bc");
#endif
}
@@ -94,3 +95,7 @@ CompilerLLVM::CompileDexMethod(DexFile::CodeItem const* code_item,
return method_compiler->Compile();
}
+
+
+} // namespace compiler_llvm
+} // namespace art