From 6546ec57eefb0c28e79c0d80ed5a298c15aa8fbe Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Sat, 17 Mar 2012 20:08:29 +0800 Subject: Add ELF index to art::compiler_llvm::CompilationUnit. We need an ELF index to remember which ELF image contains the CompiledMethod or CompiledInvokeStub. (cherry picked from commit df612fb98fabeec2fa7277c7ab332589fa38283c) Change-Id: Ic8a4aca7d030685e156c9f3fe632bf45a5c4d02b --- src/compiler_llvm/compilation_unit.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/compiler_llvm/compilation_unit.cc') diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc index f654e488b6..d548976d1f 100644 --- a/src/compiler_llvm/compilation_unit.cc +++ b/src/compiler_llvm/compilation_unit.cc @@ -60,8 +60,9 @@ namespace compiler_llvm { llvm::Module* makeLLVMModuleContents(llvm::Module* module); -CompilationUnit::CompilationUnit(InstructionSet insn_set) -: insn_set_(insn_set), context_(new llvm::LLVMContext()), mem_usage_(0) { +CompilationUnit::CompilationUnit(InstructionSet insn_set, size_t elf_idx) +: insn_set_(insn_set), elf_idx_(elf_idx), context_(new llvm::LLVMContext()), + mem_usage_(0) { // Create the module and include the runtime function declaration module_ = new llvm::Module("art", *context_); -- cgit v1.2.3-59-g8ed1b