llvm-readobj: print out the fields of the COFF delay-import table

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rui Ueyama
2014-10-03 18:07:18 +00:00
parent 8e2b2ae80e
commit a6abd9e176
4 changed files with 28 additions and 0 deletions

View File

@@ -921,6 +921,14 @@ void COFFDumper::printCOFFImports() {
StringRef Name;
if (error(I->getName(Name))) return;
W.printString("Name", Name);
const delay_import_directory_table_entry *Table;
if (error(I->getDelayImportTable(Table))) return;
W.printHex("Attributes", Table->Attributes);
W.printHex("ModuleHandle", Table->ModuleHandle);
W.printHex("ImportAddressTable", Table->DelayImportAddressTable);
W.printHex("ImportNameTable", Table->DelayImportNameTable);
W.printHex("BoundDelayImportTable", Table->BoundDelayImportTable);
W.printHex("UnloadDelayImportTable", Table->UnloadDelayImportTable);
printImportedSymbols(I->imported_symbol_begin(), I->imported_symbol_end());
}
}