aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit5691e74f97fc8cad671d50450ad986347875e1d1 (patch)
treeb5ee91bc913d8d6fc7f56d4665782c9fe1040a05 /test/Scripts
parentee0d89245eabf93d89b5fef7ac8707680796826d (diff)
downloadexternal_llvm-5691e74f97fc8cad671d50450ad986347875e1d1.zip
external_llvm-5691e74f97fc8cad671d50450ad986347875e1d1.tar.gz
external_llvm-5691e74f97fc8cad671d50450ad986347875e1d1.tar.bz2
MC/X86_64: Symbol support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts')
-rwxr-xr-xtest/Scripts/macho-dump8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Scripts/macho-dump b/test/Scripts/macho-dump
index c2598f5..72f8339 100755
--- a/test/Scripts/macho-dump
+++ b/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 " ),"