mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Re-submit r191472 with a fix for big endian.
llvm-objdump: Dump COFF import table if -private-headers option is given. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -770,6 +770,14 @@ static void PrintUnwindInfo(const ObjectFile *o) {
|
||||
}
|
||||
}
|
||||
|
||||
static void printPrivateFileHeader(const ObjectFile *o) {
|
||||
if (o->isELF()) {
|
||||
printELFFileHeader(o);
|
||||
} else if (o->isCOFF()) {
|
||||
printCOFFFileHeader(o);
|
||||
}
|
||||
}
|
||||
|
||||
static void DumpObject(const ObjectFile *o) {
|
||||
outs() << '\n';
|
||||
outs() << o->getFileName()
|
||||
@ -787,8 +795,8 @@ static void DumpObject(const ObjectFile *o) {
|
||||
PrintSymbolTable(o);
|
||||
if (UnwindInfo)
|
||||
PrintUnwindInfo(o);
|
||||
if (PrivateHeaders && o->isELF())
|
||||
printELFFileHeader(o);
|
||||
if (PrivateHeaders)
|
||||
printPrivateFileHeader(o);
|
||||
}
|
||||
|
||||
/// @brief Dump each object file in \a a;
|
||||
|
Reference in New Issue
Block a user