diff options
author | Kevin Enderby <enderby@apple.com> | 2015-01-20 21:47:46 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2015-01-20 21:47:46 +0000 |
commit | 98da6136d027353eedbc4721cc71c8a63a6a91af (patch) | |
tree | 086f1bc3e365108d6ce610e68b4a85c1c9845433 /llvm/tools/llvm-objdump/MachODump.cpp | |
parent | cb274c0c4724c65b8c9cef32e431cf6152b0410e (diff) | |
download | bcm5719-llvm-98da6136d027353eedbc4721cc71c8a63a6a91af.tar.gz bcm5719-llvm-98da6136d027353eedbc4721cc71c8a63a6a91af.zip |
For llvm-objdump, hook up existing options to work when using -macho (the Mach-O parser).
llvm-svn: 226612
Diffstat (limited to 'llvm/tools/llvm-objdump/MachODump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/MachODump.cpp | 24 |
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) |