Revert "llvm-objdump: Dump COFF import table if -private-headers option is given."
[oota-llvm.git] / tools / llvm-objdump / llvm-objdump.cpp
index 9bc092e188163f66d772cc9fd747542c1966b497..8065787945f40a753c40064caf925fe2472a5e7c 100644 (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;