Remove unused function.
authorEric Christopher <echristo@apple.com>
Mon, 4 Apr 2011 17:36:11 +0000 (17:36 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 4 Apr 2011 17:36:11 +0000 (17:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128834 91177308-0d34-0410-b5e6-96231b3b80d8

tools/macho-dump/macho-dump.cpp

index c040df21c6e3c01d7dd6122cc45b9a8ea8e246d4..f324259a856f6f805a3b0442c2146df9f69a49c0 100644 (file)
@@ -49,27 +49,6 @@ static void Warning(const Twine &Msg) {
 
 ///
 
-#if 0
-static int DumpHeader(MachOObject &Obj) {
-  // Read the header.
-  const macho::Header &Hdr = Obj.getHeader();
-  outs() << "('cputype', " << Hdr.CPUType << ")\n";
-  outs() << "('cpusubtype', " << Hdr.CPUSubtype << ")\n";
-  outs() << "('filetype', " << Hdr.FileType << ")\n";
-  outs() << "('num_load_commands', " << Hdr.NumLoadCommands << ")\n";
-  outs() << "('load_commands_size', " << Hdr.SizeOfLoadCommands << ")\n";
-  outs() << "('flag', " << Hdr.Flags << ")\n";
-
-  // Print extended header if 64-bit.
-  if (Obj.is64Bit()) {
-    const macho::Header64Ext &Hdr64 = Obj.getHeader64Ext();
-    outs() << "('reserved', " << Hdr64.Reserved << ")\n";
-  }
-
-  return 0;
-}
-#endif
-
 static void DumpSegmentCommandData(StringRef Name,
                                    uint64_t VMAddr, uint64_t VMSize,
                                    uint64_t FileOffset, uint64_t FileSize,