summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/nm-universal-binary.test
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-05-09 23:57:49 +0000
committerKevin Enderby <enderby@apple.com>2014-05-09 23:57:49 +0000
commit6abc2e58acf77abf9683fa1bd5cf12df829c0752 (patch)
tree5b5e61a9fba947eb2aa253077e3bc09e1ec9ccb2 /llvm/test/Object/nm-universal-binary.test
parentb6bd2f6cf7afab923b86c3b60eae09610bcbbcc2 (diff)
downloadbcm5719-llvm-6abc2e58acf77abf9683fa1bd5cf12df829c0752.tar.gz
bcm5719-llvm-6abc2e58acf77abf9683fa1bd5cf12df829c0752.zip
Fix llvm-nm to print the full 64-bit address for symbols in 64-bit object files.
The implementation might be better to have a method is64Bit() in the class SymbolicFile instead of having the static routine isSymbolList64Bit() in llvm-nm.cpp . But this is very much in the sprit of isObject() and getNMTypeChar() in llvm-nm.cpp that has a series of if else statements based on the specific class of the SymbolicFile. I can update this if folks would like. Also the tests were updated to be explicit about checking the address for 64-bits or 32-bits from object files. llvm-svn: 208463
Diffstat (limited to 'llvm/test/Object/nm-universal-binary.test')
-rw-r--r--llvm/test/Object/nm-universal-binary.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Object/nm-universal-binary.test b/llvm/test/Object/nm-universal-binary.test
index 8febfdfab39..07a97f7aff9 100644
--- a/llvm/test/Object/nm-universal-binary.test
+++ b/llvm/test/Object/nm-universal-binary.test
@@ -1,6 +1,6 @@
RUN: llvm-nm %p/Inputs/macho-universal.x86_64.i386 | FileCheck %s
CHECK: macho-universal.x86_64.i386:x86_64
-CHECK: main
+CHECK: 0000000100000f60 T _main
CHECK: macho-universal.x86_64.i386:i386
-CHECK: main
+CHECK: 00001fa0 T _main
OpenPOWER on IntegriCloud