summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/X86/macho-dylib.test
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2016-11-29 21:43:40 +0000
committerKevin Enderby <enderby@apple.com>2016-11-29 21:43:40 +0000
commitf9d60f00e516358a33dc1b0e65a7ce6dd94cc188 (patch)
tree6a87d193d753ffe689b7f9484ca03818c6c555d7 /llvm/test/tools/llvm-objdump/X86/macho-dylib.test
parent9303efb0afb6c2d904d4d9d5277ad58c14b067f7 (diff)
downloadbcm5719-llvm-f9d60f00e516358a33dc1b0e65a7ce6dd94cc188.tar.gz
bcm5719-llvm-f9d60f00e516358a33dc1b0e65a7ce6dd94cc188.zip
Add to llvm-objdump the -no-leading-headers option with the use of the -macho option.
In some cases the leading headers of the file name, archive member and architecture slice name in the output of lvm-objdump is not wanted so the tool’s output can be directly used by scripts. This matches the -X option of the Apple otool(1) program. rdar://28491674 llvm-svn: 288199
Diffstat (limited to 'llvm/test/tools/llvm-objdump/X86/macho-dylib.test')
-rw-r--r--llvm/test/tools/llvm-objdump/X86/macho-dylib.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-dylib.test b/llvm/test/tools/llvm-objdump/X86/macho-dylib.test
index 0e31b8b930e..fd6ca80c58b 100644
--- a/llvm/test/tools/llvm-objdump/X86/macho-dylib.test
+++ b/llvm/test/tools/llvm-objdump/X86/macho-dylib.test
@@ -1,6 +1,10 @@
RUN: llvm-objdump -m -dylibs-used %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=USED
RUN: llvm-objdump -m -dylib-id %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s -check-prefix=ID
+RUN: llvm-objdump -m -dylib-id -no-leading-headers %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s -check-prefix=IDNOHEADERS
USED: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
ID: /usr/lib/foo.dylib
+
+IDNOHEADERS-NOT: dylibLoadKinds.macho-x86_64:
+IDNOHEADERS: /usr/lib/foo.dylib
OpenPOWER on IntegriCloud