For llvm-objdump, hook up existing options to work when using -macho (the Mach-O parser).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226612 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kevin Enderby
2015-01-20 21:47:46 +00:00
parent e4f11175cb
commit c97fb73e2f
8 changed files with 81 additions and 29 deletions

View File

@@ -318,20 +318,16 @@ static void ProcessMachO(StringRef Filename, MachOObjectFile *MachOOF,
if (Disassemble)
DisassembleMachO(Filename, MachOOF);
// TODO: These should/could be printed in Darwin's otool(1) or nm(1) style
// for -macho. Or just used a new option that maps to the otool(1)
// option like -r, -l, etc. Or just the normal llvm-objdump option
// but now for this slice so that the -arch options can be used.
// if (Relocations)
// PrintRelocations(MachOOF);
// if (SectionHeaders)
// PrintSectionHeaders(MachOOF);
// if (SectionContents)
// PrintSectionContents(MachOOF);
// if (SymbolTable)
// PrintSymbolTable(MachOOF);
// if (UnwindInfo)
// PrintUnwindInfo(MachOOF);
if (Relocations)
PrintRelocations(MachOOF);
if (SectionHeaders)
PrintSectionHeaders(MachOOF);
if (SectionContents)
PrintSectionContents(MachOOF);
if (SymbolTable)
PrintSymbolTable(MachOOF);
if (UnwindInfo)
printMachOUnwindInfo(MachOOF);
if (PrivateHeaders)
printMachOFileHeader(MachOOF);
if (ExportsTrie)