summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-11-02 05:03:24 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-11-02 05:03:24 +0000
commit6152f7d59615de9e4fa869bdc89570560c34bddb (patch)
tree186a228ac0b0007913e20f1b918f5a1424fbd86f /test
parent9d293f1f68d890ae391e222fe9384b83183286cb (diff)
downloadllvm-6152f7d59615de9e4fa869bdc89570560c34bddb.tar.gz
llvm-6152f7d59615de9e4fa869bdc89570560c34bddb.tar.bz2
llvm-6152f7d59615de9e4fa869bdc89570560c34bddb.tar.xz
Fix llvm-nm to mach OS X's nm on some tests.
There is still a long way to go for llvm-nm, but at least we now match nm's letter output in the cases we test for. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Object/Inputs/weak-global-symbol.macho-i386bin0 -> 344 bytes
-rw-r--r--test/Object/nm-trivial-object.test8
-rw-r--r--test/Object/nm-weak-global-macho.test3
3 files changed, 7 insertions, 4 deletions
diff --git a/test/Object/Inputs/weak-global-symbol.macho-i386 b/test/Object/Inputs/weak-global-symbol.macho-i386
new file mode 100644
index 0000000000..a9c8e0cde1
--- /dev/null
+++ b/test/Object/Inputs/weak-global-symbol.macho-i386
Binary files differ
diff --git a/test/Object/nm-trivial-object.test b/test/Object/nm-trivial-object.test
index d5177457a8..748d6f20d5 100644
--- a/test/Object/nm-trivial-object.test
+++ b/test/Object/nm-trivial-object.test
@@ -25,10 +25,10 @@ ELF: U puts
macho: 00000000 U _SomeOtherFunction
-macho: 00000000 s _main
+macho: 00000000 T _main
macho: 00000000 U _puts
macho64: 00000028 s L_.str
-macho64: 00000000 u _SomeOtherFunction
-macho64: 00000000 s _main
-macho64: 00000000 u _puts
+macho64: 00000000 U _SomeOtherFunction
+macho64: 00000000 T _main
+macho64: 00000000 U _puts
diff --git a/test/Object/nm-weak-global-macho.test b/test/Object/nm-weak-global-macho.test
new file mode 100644
index 0000000000..ede26090f9
--- /dev/null
+++ b/test/Object/nm-weak-global-macho.test
@@ -0,0 +1,3 @@
+RUN: llvm-nm %p/Inputs/weak-global-symbol.macho-i386 | FileCheck %s
+
+CHECK: 00000000 S _a