diff options
Diffstat (limited to 'src/compiler_llvm/elf_loader.cc')
| -rw-r--r-- | src/compiler_llvm/elf_loader.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/compiler_llvm/elf_loader.cc b/src/compiler_llvm/elf_loader.cc index adea85d73f..8f8eff9014 100644 --- a/src/compiler_llvm/elf_loader.cc +++ b/src/compiler_llvm/elf_loader.cc @@ -84,20 +84,18 @@ void ElfLoader::RelocateExecutable() { } -const void* ElfLoader::GetMethodCodeAddr(size_t elf_idx, - const Method* method) const { +const void* ElfLoader::GetMethodCodeAddr(uint16_t elf_idx, + uint16_t elf_func_idx) const { CHECK_LT(elf_idx, executables_.size()); - CHECK(method != NULL); - return GetAddr(elf_idx, LLVMLongName(method).c_str()); + return GetAddr(elf_idx, ElfFuncName(elf_func_idx).c_str()); } const Method::InvokeStub* ElfLoader:: -GetMethodInvokeStubAddr(size_t elf_idx, const Method* method) const { +GetMethodInvokeStubAddr(uint16_t elf_idx, uint16_t elf_func_idx) const { CHECK_LT(elf_idx, executables_.size()); - CHECK(method != NULL); return reinterpret_cast<const Method::InvokeStub*>( - GetAddr(elf_idx, LLVMStubName(method).c_str())); + GetAddr(elf_idx, ElfFuncName(elf_func_idx).c_str())); } |