diff options
Diffstat (limited to 'src/compiler/dex/frontend.cc')
| -rw-r--r-- | src/compiler/dex/frontend.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler/dex/frontend.cc b/src/compiler/dex/frontend.cc index 498600f4b2..4619052f4b 100644 --- a/src/compiler/dex/frontend.cc +++ b/src/compiler/dex/frontend.cc @@ -37,6 +37,9 @@ namespace { } namespace art { +namespace compiler_llvm { +llvm::Module* makeLLVMModuleContents(llvm::Module* module); +} LLVMInfo::LLVMInfo() { #if !defined(ART_USE_PORTABLE_COMPILER) @@ -46,8 +49,9 @@ LLVMInfo::LLVMInfo() { llvm_context_.reset(new llvm::LLVMContext()); llvm_module_ = new llvm::Module("art", *llvm_context_); llvm::StructType::create(*llvm_context_, "JavaObject"); - intrinsic_helper_.reset( new greenland::IntrinsicHelper(*llvm_context_, *llvm_module_)); - ir_builder_.reset(new greenland::IRBuilder(*llvm_context_, *llvm_module_, *intrinsic_helper_)); + compiler_llvm::makeLLVMModuleContents(llvm_module_); + intrinsic_helper_.reset( new compiler_llvm::IntrinsicHelper(*llvm_context_, *llvm_module_)); + ir_builder_.reset(new compiler_llvm::IRBuilder(*llvm_context_, *llvm_module_, *intrinsic_helper_)); } LLVMInfo::~LLVMInfo() { |