aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Object/nm-universal-binary.test
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-07-24 23:31:52 +0000
committerKevin Enderby <enderby@apple.com>2014-07-24 23:31:52 +0000
commit08e1bbd6457541ee2983eacbb588b74acd62a897 (patch)
treee2ff48b0267a07a108e5fe78730e15c29cd8a00c /llvm/test/Object/nm-universal-binary.test
parentab131e86ce4180ca0906a4c556d618a61100afe7 (diff)
downloadllvm-08e1bbd6457541ee2983eacbb588b74acd62a897.zip
llvm-08e1bbd6457541ee2983eacbb588b74acd62a897.tar.gz
llvm-08e1bbd6457541ee2983eacbb588b74acd62a897.tar.bz2
Add an implementation for llvm-nm’s -print-file-name option (aka -o and -A).
The -print-file-name option in llvm-nm is to precede each symbol with the object file it came from. While code for the parsing of this option and its aliases existed there was no code to implement it. llvm-svn: 213906
Diffstat (limited to 'llvm/test/Object/nm-universal-binary.test')
-rw-r--r--llvm/test/Object/nm-universal-binary.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Object/nm-universal-binary.test b/llvm/test/Object/nm-universal-binary.test
index 889377b..732445e 100644
--- a/llvm/test/Object/nm-universal-binary.test
+++ b/llvm/test/Object/nm-universal-binary.test
@@ -6,6 +6,8 @@ RUN: llvm-nm -arch all %p/Inputs/macho-universal-archive.x86_64.i386 \
RUN: | FileCheck %s -check-prefix CHECK-AR
RUN: llvm-nm -arch i386 %p/Inputs/macho-universal-archive.x86_64.i386 \
RUN: | FileCheck %s -check-prefix CHECK-AR-i386
+RUN: llvm-nm -o -arch all %p/Inputs/macho-universal-archive.x86_64.i386 \
+RUN: | FileCheck %s -check-prefix CHECK-AR-o
CHECK-OBJ: macho-universal.x86_64.i386 (for architecture x86_64):
CHECK-OBJ: 0000000100000f60 T _main
@@ -29,3 +31,11 @@ CHECK-AR: 00000000 T _foo
CHECK-AR-i386: macho-universal-archive.x86_64.i386(foo.o):
CHECK-AR-i386: 00000008 D _bar
CHECK-AR-i386: 00000000 T _foo
+
+CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000068 s EH_frame0
+CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 000000000000003b s L_.str
+CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000000 T _main
+CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000080 S _main.eh
+CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: U _printf
+CHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000008 D _bar
+CHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000000 T _foo