From 0f0899ac8fbaa470922976d058bbb144fb9eea06 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Fri, 23 Mar 2012 10:48:18 +0800 Subject: Add ElfImage to hold ELF image address and size. (cherry picked from commit 578763dc6630156b163933720a85f8d34cbab652) Change-Id: I76d03130eabb100869ea941c9e4fd92cc9244eeb --- src/compiler_llvm/compiler_llvm.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/compiler_llvm/compiler_llvm.cc') 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(); } -- cgit v1.2.3-59-g8ed1b