diff options
| author | 2012-03-23 10:48:18 +0800 | |
|---|---|---|
| committer | 2012-03-26 21:09:19 -0700 | |
| commit | 0f0899ac8fbaa470922976d058bbb144fb9eea06 (patch) | |
| tree | c89031b21e24111b0a0cde440224104661cf4cf8 /src/compiler_llvm/compiler_llvm.cc | |
| parent | 3d6bfca7985c8446db60a2be4e4f03e66167e162 (diff) | |
Add ElfImage to hold ELF image address and size.
(cherry picked from commit 578763dc6630156b163933720a85f8d34cbab652)
Change-Id: I76d03130eabb100869ea941c9e4fd92cc9244eeb
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
| -rw-r--r-- | src/compiler_llvm/compiler_llvm.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index 1d878c901c..65d53b96e6 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -21,6 +21,7 @@ #include "compiled_method.h" #include "compiler.h" #include "dex_cache.h" +#include "elf_image.h" #include "elf_loader.h" #include "ir_builder.h" #include "jni_compiler.h" @@ -205,9 +206,7 @@ void CompilerLLVM::LoadElfFromCompilationUnit(const CompilationUnit* cunit) { compiler_lock_.AssertHeld(); DCHECK(cunit->IsMaterialized()) << cunit->GetElfIndex(); - if (!elf_loader_->LoadElfAt(cunit->GetElfIndex(), - cunit->GetElfImage(), - cunit->GetElfSize())) { + if (!elf_loader_->LoadElfAt(cunit->GetElfIndex(), cunit->GetElfImage())) { LOG(ERROR) << "Failed to load ELF from compilation unit " << cunit->GetElfIndex(); } |