summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
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
commita135632af0f0a108f882954200052a95c2cd873b (patch)
treed0586ae9a34b299ce6d756f03a4e0c645e04d3ed /llvm/test/Object
parent329211bbb7f6f3145a65494624e57d422048923f (diff)
downloadbcm5719-llvm-a135632af0f0a108f882954200052a95c2cd873b.tar.gz
bcm5719-llvm-a135632af0f0a108f882954200052a95c2cd873b.zip
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. llvm-svn: 193912
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/Inputs/weak-global-symbol.macho-i386bin0 -> 344 bytes
-rw-r--r--llvm/test/Object/nm-trivial-object.test8
-rw-r--r--llvm/test/Object/nm-weak-global-macho.test3
3 files changed, 7 insertions, 4 deletions
diff --git a/llvm/test/Object/Inputs/weak-global-symbol.macho-i386 b/llvm/test/Object/Inputs/weak-global-symbol.macho-i386
new file mode 100644
index 00000000000..a9c8e0cde15
--- /dev/null
+++ b/llvm/test/Object/Inputs/weak-global-symbol.macho-i386
Binary files differ
diff --git a/llvm/test/Object/nm-trivial-object.test b/llvm/test/Object/nm-trivial-object.test
index d5177457a8d..748d6f20d51 100644
--- a/llvm/test/Object/nm-trivial-object.test
+++ b/llvm/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/llvm/test/Object/nm-weak-global-macho.test b/llvm/test/Object/nm-weak-global-macho.test
new file mode 100644
index 00000000000..ede26090f95
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud