mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
test/Scripts/macho-dump: Make hack for Python-2.4. [PR7995]
With Python-2.4, Reader::read64 always returns (unexpected) long integer. FileCheck detects failure on test/MC/MachO among '0' and '0L'. CentOS5(aka RHEL5 clone) provides python-2.4. llvm-svn: 117637
This commit is contained in:
parent
753c9ce807
commit
a1491c3c47
@ -43,7 +43,10 @@ class Reader:
|
||||
return int(Value)
|
||||
|
||||
def read64(self):
|
||||
return struct.unpack('><'[self.isLSB] + 'Q', self.read(8))[0]
|
||||
Value = struct.unpack('><'[self.isLSB] + 'Q', self.read(8))[0]
|
||||
if Value == int(Value):
|
||||
Value = int(Value)
|
||||
return Value
|
||||
|
||||
def registerStringTable(self, strings):
|
||||
if self.string_table is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user