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: 285906
This commit is contained in:
parent
9ea68341b9
commit
dd6abaad75
@ -129,7 +129,7 @@ template <class ELFT>
|
||||
typename ELFT::SymRange ELFFileBase<ELFT>::getElfSymbols(bool OnlyGlobals) {
|
||||
if (!Symtab)
|
||||
return Elf_Sym_Range(nullptr, nullptr);
|
||||
Elf_Sym_Range Syms = ELFObj.symbols(Symtab);
|
||||
Elf_Sym_Range Syms = check(ELFObj.symbols(Symtab));
|
||||
uint32_t NumSymbols = std::distance(Syms.begin(), Syms.end());
|
||||
uint32_t FirstNonLocal = Symtab->sh_info;
|
||||
if (FirstNonLocal == 0 || FirstNonLocal > NumSymbols)
|
||||
@ -896,7 +896,7 @@ template <class ELFT> std::vector<StringRef> LazyObjectFile::getElfSymbols() {
|
||||
for (const Elf_Shdr &Sec : Sections) {
|
||||
if (Sec.sh_type != SHT_SYMTAB)
|
||||
continue;
|
||||
Elf_Sym_Range Syms = Obj.symbols(&Sec);
|
||||
Elf_Sym_Range Syms = check(Obj.symbols(&Sec));
|
||||
uint32_t FirstNonLocal = Sec.sh_info;
|
||||
StringRef StringTable = check(Obj.getStringTableForSymtab(Sec, Sections));
|
||||
std::vector<StringRef> V;
|
||||
|
Loading…
Reference in New Issue
Block a user