llvm-mc: Fix tests for python variations in int printing, sigh.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-08-26 04:28:45 +00:00
parent e1f515ea59
commit 573e53627e
2 changed files with 11 additions and 11 deletions

View File

@ -244,25 +244,25 @@ sym_nlp_G:
// CHECK: ('nlocrel', 0)
// CHECK: ('_indirect_symbols', [
// CHECK: # Indirect Symbol 0
// CHECK: (('symbol_index', 5),),
// CHECK: (('symbol_index', 0x5),),
// CHECK: # Indirect Symbol 1
// CHECK: (('symbol_index', 4),),
// CHECK: (('symbol_index', 0x4),),
// CHECK: # Indirect Symbol 2
// CHECK: (('symbol_index', 0),),
// CHECK: (('symbol_index', 0x0),),
// CHECK: # Indirect Symbol 3
// CHECK: (('symbol_index', 6),),
// CHECK: (('symbol_index', 0x6),),
// CHECK: # Indirect Symbol 4
// CHECK: (('symbol_index', 2),),
// CHECK: (('symbol_index', 0x2),),
// CHECK: # Indirect Symbol 5
// CHECK: (('symbol_index', 8),),
// CHECK: (('symbol_index', 0x8),),
// CHECK: # Indirect Symbol 6
// CHECK: (('symbol_index', 7),),
// CHECK: (('symbol_index', 0x7),),
// CHECK: # Indirect Symbol 7
// CHECK: (('symbol_index', 2147483648),),
// CHECK: (('symbol_index', 0x80000000),),
// CHECK: # Indirect Symbol 8
// CHECK: (('symbol_index', 9),),
// CHECK: (('symbol_index', 0x9),),
// CHECK: # Indirect Symbol 9
// CHECK: (('symbol_index', 3),),
// CHECK: (('symbol_index', 0x3),),
// CHECK: ])
// CHECK: ),
// CHECK: ])

View File

@ -198,7 +198,7 @@ def dumpDysymtabCommand(f, opts):
print " ('_indirect_symbols', ["
for i in range(nindirectsyms):
print " # Indirect Symbol %r" % i
print " (('symbol_index', %r),)," % f.read32()
print " (('symbol_index', %#x),)," % f.read32()
print " ])"
f.seek(prev_pos)