summaryrefslogtreecommitdiffstats
path: root/llvm/test/Scripts
diff options
context:
space:
mode:
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