llvm-readobj: add support to dump COFF export tables
This enhances llvm-readobj to print out the COFF export table, similar to the -coff-import option. This is useful for testing in lld. llvm-svn: 225120
This commit is contained in:
@@ -146,6 +146,10 @@ namespace opts {
|
||||
cl::opt<bool>
|
||||
COFFImports("coff-imports", cl::desc("Display the PE/COFF import table"));
|
||||
|
||||
// -coff-exports
|
||||
cl::opt<bool>
|
||||
COFFExports("coff-exports", cl::desc("Display the PE/COFF export table"));
|
||||
|
||||
// -coff-directives
|
||||
cl::opt<bool>
|
||||
COFFDirectives("coff-directives",
|
||||
@@ -282,6 +286,8 @@ static void dumpObject(const ObjectFile *Obj) {
|
||||
Dumper->printMipsPLTGOT();
|
||||
if (opts::COFFImports)
|
||||
Dumper->printCOFFImports();
|
||||
if (opts::COFFExports)
|
||||
Dumper->printCOFFExports();
|
||||
if (opts::COFFDirectives)
|
||||
Dumper->printCOFFDirectives();
|
||||
if (opts::COFFBaseRelocs)
|
||||
|
||||
Reference in New Issue
Block a user