mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
[llvm-reaobj] Display COFF-specific sections/tables only if the object is COFF.
Just skip them otherwise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243086 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc561accb7
commit
c46ea19bd3
@ -302,15 +302,16 @@ static void dumpObject(const ObjectFile *Obj) {
|
||||
if (opts::MipsReginfo)
|
||||
Dumper->printMipsReginfo();
|
||||
}
|
||||
if (opts::COFFImports)
|
||||
Dumper->printCOFFImports();
|
||||
if (opts::COFFExports)
|
||||
Dumper->printCOFFExports();
|
||||
if (opts::COFFDirectives)
|
||||
Dumper->printCOFFDirectives();
|
||||
if (opts::COFFBaseRelocs)
|
||||
Dumper->printCOFFBaseReloc();
|
||||
|
||||
if (Obj->isCOFF()) {
|
||||
if (opts::COFFImports)
|
||||
Dumper->printCOFFImports();
|
||||
if (opts::COFFExports)
|
||||
Dumper->printCOFFExports();
|
||||
if (opts::COFFDirectives)
|
||||
Dumper->printCOFFDirectives();
|
||||
if (opts::COFFBaseRelocs)
|
||||
Dumper->printCOFFBaseReloc();
|
||||
}
|
||||
if (opts::PrintStackMap)
|
||||
Dumper->printStackMap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user