mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 20:23:39 +08:00
Update for llvm change.
llvm-svn: 285911
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user