Revert "llvm-objdump: Dump COFF import table if -private-headers option is given."

This reverts commit r191472 because it's failing on BE machine.

llvm-svn: 191480
This commit is contained in:
Rui Ueyama
2013-09-27 01:29:36 +00:00
parent a7ec3898d6
commit 333d28a0bb
15 changed files with 160 additions and 390 deletions

View File

@@ -770,14 +770,6 @@ 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()
@@ -795,8 +787,8 @@ static void DumpObject(const ObjectFile *o) {
PrintSymbolTable(o);
if (UnwindInfo)
PrintUnwindInfo(o);
if (PrivateHeaders)
printPrivateFileHeader(o);
if (PrivateHeaders && o->isELF())
printELFFileHeader(o);
}
/// @brief Dump each object file in \a a;