mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
llvm-readobj: print COFF imported symbols
This patch defines a new iterator for the imported symbols. Make a change to COFFDumper to use that iterator to print out imported symbols and its ordinals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -895,5 +895,13 @@ void COFFDumper::printCOFFImports() {
|
||||
W.printHex("ImportLookupTableRVA", Addr);
|
||||
if (error(I->getImportAddressTableRVA(Addr))) return;
|
||||
W.printHex("ImportAddressTableRVA", Addr);
|
||||
for (auto J = I->imported_symbol_begin(), F = I->imported_symbol_end();
|
||||
J != F; ++J) {
|
||||
StringRef Sym;
|
||||
if (error(J->getSymbolName(Sym))) return;
|
||||
uint16_t Ordinal;
|
||||
if (error(J->getOrdinal(Ordinal))) return;
|
||||
W.printNumber("Symbol", Sym, Ordinal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user