For llvm-objdump, add the option -private-header (without the trailing ’s’)
authorKevin Enderby <enderby@apple.com>
Wed, 13 Jan 2016 00:25:36 +0000 (00:25 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 13 Jan 2016 00:25:36 +0000 (00:25 +0000)
commitf3e6026b5b25b0c6e9a7f7f0df7f4df3dbccc5d9
tree241888c821d3d2f9559963c77e98d1ef9dc967ef
parent084942c12e249be522ef4cf18753b04495322a37
For llvm-objdump, add the option -private-header (without the trailing ’s’)
to only print the first private header.

Which for Mach-O files only prints the Mach header and not the subsequent load
commands.  Which is used by scripts to match what the darwin otool(1) with the
-h flag does without the -l flag.

For non-Mach-O files it has the same functionality as -private-headers (with
the trailing ’s’).

rdar://24158331

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257548 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/macho-private-header.test [new file with mode: 0644]
tools/llvm-objdump/MachODump.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-objdump/llvm-objdump.h