mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-01 13:20:25 +00:00
Use existing ELFObj function. NFC.
llvm-svn: 285913
This commit is contained in:
parent
e7d97368f2
commit
cc728b41b6
@ -564,10 +564,7 @@ SharedFile<ELFT>::SharedFile(MemoryBufferRef M)
|
||||
template <class ELFT>
|
||||
const typename ELFT::Shdr *
|
||||
SharedFile<ELFT>::getSection(const Elf_Sym &Sym) const {
|
||||
uint32_t Index = this->getSectionIndex(Sym);
|
||||
if (Index == 0)
|
||||
return nullptr;
|
||||
return check(this->ELFObj.getSection(Index));
|
||||
return check(this->ELFObj.getSection(&Sym, this->Symtab, this->SymtabSHNDX));
|
||||
}
|
||||
|
||||
// Partially parse the shared object file so that we can call
|
||||
|
Loading…
Reference in New Issue
Block a user