mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-13 03:12:46 +00:00
Update for llvm change.
llvm-svn: 315377
This commit is contained in:
parent
8f1f7b1442
commit
ae5e9ed422
@ -1014,7 +1014,7 @@ template <class ELFT> std::vector<StringRef> LazyObjFile::getElfSymbols() {
|
||||
typedef typename ELFT::Sym Elf_Sym;
|
||||
typedef typename ELFT::SymRange Elf_Sym_Range;
|
||||
|
||||
const ELFFile<ELFT> Obj(this->MB.getBuffer());
|
||||
ELFFile<ELFT> Obj = check(ELFFile<ELFT>::create(this->MB.getBuffer()));
|
||||
ArrayRef<Elf_Shdr> Sections = check(Obj.sections(), toString(this));
|
||||
for (const Elf_Shdr &Sec : Sections) {
|
||||
if (Sec.sh_type != SHT_SYMTAB)
|
||||
|
@ -128,7 +128,7 @@ public:
|
||||
}
|
||||
|
||||
llvm::object::ELFFile<ELFT> getObj() const {
|
||||
return llvm::object::ELFFile<ELFT>(MB.getBuffer());
|
||||
return check(llvm::object::ELFFile<ELFT>::create(MB.getBuffer()));
|
||||
}
|
||||
|
||||
StringRef getStringTable() const { return StringTable; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user