mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-01 13:20:25 +00:00
Update for llvm change.
llvm-svn: 285911
This commit is contained in:
parent
7b2750afa5
commit
382200abb7
@ -144,7 +144,7 @@ template <class ELFT>
|
||||
uint32_t ELFFileBase<ELFT>::getSectionIndex(const Elf_Sym &Sym) const {
|
||||
uint32_t I = Sym.st_shndx;
|
||||
if (I == ELF::SHN_XINDEX)
|
||||
return ELFObj.getExtendedSymbolTableIndex(&Sym, Symtab, SymtabSHNDX);
|
||||
return check(ELFObj.getExtendedSymbolTableIndex(&Sym, Symtab, SymtabSHNDX));
|
||||
if (I >= ELF::SHN_LORESERVE)
|
||||
return 0;
|
||||
return I;
|
||||
|
Loading…
Reference in New Issue
Block a user