From 6152f7d59615de9e4fa869bdc89570560c34bddb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 2 Nov 2013 05:03:24 +0000 Subject: 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 --- test/Object/Inputs/weak-global-symbol.macho-i386 | Bin 0 -> 344 bytes test/Object/nm-trivial-object.test | 8 ++++---- test/Object/nm-weak-global-macho.test | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 test/Object/Inputs/weak-global-symbol.macho-i386 create mode 100644 test/Object/nm-weak-global-macho.test (limited to 'test/Object') 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 Binary files /dev/null and b/test/Object/Inputs/weak-global-symbol.macho-i386 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 -- cgit v1.2.3