summaryrefslogtreecommitdiffstats
path: root/llvm/test/Scripts
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-13 22:49:35 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-13 22:49:35 +0000
commit7c1f3d8cad52724d413eb2985f4b79d13ace69b8 (patch)
treeb2fa86e63bf1c6bab89db401d547ce7ca95f4e44 /llvm/test/Scripts
parent2bfc50bf6853e560f42c740fd9d237f9f53781f7 (diff)
downloadbcm5719-llvm-7c1f3d8cad52724d413eb2985f4b79d13ace69b8.tar.gz
bcm5719-llvm-7c1f3d8cad52724d413eb2985f4b79d13ace69b8.zip
MC/X86_64: Symbol support.
llvm-svn: 98456
Diffstat (limited to 'llvm/test/Scripts')
-rwxr-xr-xllvm/test/Scripts/macho-dump8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/Scripts/macho-dump b/llvm/test/Scripts/macho-dump
index c2598f5b00d..72f833975d0 100755
--- a/llvm/test/Scripts/macho-dump
+++ b/llvm/test/Scripts/macho-dump
@@ -187,8 +187,12 @@ def dumpNlist32(f, i, opts):
print " ('n_sect', %r)" % n_sect
n_desc = f.read16()
print " ('n_desc', %r)" % n_desc
- n_value = f.read32()
- print " ('n_value', %r)" % n_value
+ if f.is64Bit:
+ n_value = f.read64()
+ print " ('n_value', %r)" % n_value
+ else:
+ n_value = f.read32()
+ print " ('n_value', %r)" % n_value
print " ('_string', %r)" % f.getString(n_strx)
print " ),"
OpenPOWER on IntegriCloud