diff options
| author | 2012-01-13 15:42:36 +0800 | |
|---|---|---|
| committer | 2012-02-16 02:12:13 -0800 | |
| commit | 42e0e1594f9b6c20f62469832bdd0b8b2d06df41 (patch) | |
| tree | cd8dcd6827366be1129c6d085bf341345750f50a /src/compiler_llvm/compiler_llvm.cc | |
| parent | d6ececa9628126dc92a7d9ca24dd6709149d2073 (diff) | |
Add art runtime support declaration.
Change-Id: I909ac29ef4ffbcbe93c7809e2d396ed4672f5892
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
| -rw-r--r-- | src/compiler_llvm/compiler_llvm.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index 10aaca4adb..8a9b3622e5 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -31,12 +31,19 @@ namespace art { namespace compiler_llvm { +namespace { +using namespace llvm; +#include "art_module.cc" +} + + CompilerLLVM::CompilerLLVM(Compiler* compiler, InstructionSet insn_set) : compiler_(compiler), compiler_lock_("llvm_compiler_lock"), insn_set_(insn_set), context_(new llvm::LLVMContext()) { // Create the module and include the runtime function declaration module_ = new llvm::Module("art", *context_); + makeLLVMModuleContents(module_); // Create IRBuilder irb_.reset(new IRBuilder(*context_, *module_)); |