When folding away a (shl (shr)) pair, we need to check that the bits that will BECOME...
[oota-llvm.git] / test / Scripts / macho-dump
index afef2ba5043c503038c7978989aa3fc9183d7dca..8c9fa59c601060815b6a56c14fd40e31b789aae5 100755 (executable)
@@ -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: