Add the -section option to llvm-objdump used with -macho that takes the argument
authorKevin Enderby <enderby@apple.com>
Sat, 31 Jan 2015 00:37:11 +0000 (00:37 +0000)
committerKevin Enderby <enderby@apple.com>
Sat, 31 Jan 2015 00:37:11 +0000 (00:37 +0000)
commitf6d258537ddbe3dbbd59e7333d31b15bcdd87a20
treeb65c31d2d0b093ce3e10f196c92a5d960cc7b3e8
parent295596a0a7981a5ebb045b84dd99a6127d1ba402
Add the -section option to llvm-objdump used with -macho that takes the argument
segname,sectname to specify a Mach-O section to print.  The printing is based on
the section type or section attributes.

The printing of the module initialization and termination section types is printed
with this change.  Printing of other section types will be added next.

llvm-svn: 227649
llvm/test/tools/llvm-objdump/X86/Inputs/dylibModInit.macho-x86_64 [new file with mode: 0755]
llvm/test/tools/llvm-objdump/X86/macho-section.test [new file with mode: 0644]
llvm/tools/llvm-objdump/MachODump.cpp
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/tools/llvm-objdump/llvm-objdump.h