summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/MachODump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-objdump/MachODump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/MachODump.cpp24
1 files changed, 10 insertions, 14 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp
index 0a83843b3e0..34ad57167d0 100644
--- a/llvm/tools/llvm-objdump/MachODump.cpp
+++ b/llvm/tools/llvm-objdump/MachODump.cpp
@@ -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)
OpenPOWER on IntegriCloud