OSDN Git Service

Add code to llvm-objdump so the -section option with -macho will dump literal pointer...
authorKevin Enderby <enderby@apple.com>
Tue, 17 Feb 2015 21:35:48 +0000 (21:35 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 17 Feb 2015 21:35:48 +0000 (21:35 +0000)
commitb019348f5d1c2160357109f2244fb5cdde24a0c6
tree70ff3b6ceb0af151391a731331bfcbf2fe302a1d
parentad295b5546b6633468e3e3131ed3ab09136ac934
Add code to llvm-objdump so the -section option with -macho will dump literal pointer sections
with the Mach-O S_LITERAL_POINTERS section type.

Also fix the printing of the leading addresses for literal sections to be consistent and
not print the 0x prefix.  Updated test cases to match.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229548 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/macho-cstring-dump.test
test/tools/llvm-objdump/X86/macho-literal-pointers-i386.test [new file with mode: 0644]
test/tools/llvm-objdump/X86/macho-literal-pointers-x86_64.test [new file with mode: 0644]
test/tools/llvm-objdump/X86/macho-literals.test
tools/llvm-objdump/MachODump.cpp