fix data size stuff for architectures with bit challenged data types
authorAndrew Lenharth <andrewl@lenharth.org>
Sat, 5 Mar 2005 15:30:33 +0000 (15:30 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sat, 5 Mar 2005 15:30:33 +0000 (15:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20453 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaRegisterInfo.cpp

index 2513e7aa2186321aa792be030e4d71ce6c9600e4..3d2b354b0b3193522bd48221e08637b0eaee6c92 100644 (file)
@@ -31,9 +31,9 @@
 using namespace llvm;
 
 //These describe LDAx
-static const long IMM_LOW  = 0xffffffffffff8000;
-static const long IMM_HIGH = 0x0000000000007fff;
-static const long IMM_MULT = 65536;
+static const int64_t IMM_LOW  = 0xffffffffffff8000;
+static const int IMM_HIGH = 0x0000000000007fff;
+static const int IMM_MULT = 65536;
 
 static long getUpper16(long l)
 {
@@ -274,7 +274,7 @@ void AlphaRegisterInfo::emitEpilogue(MachineFunction &MF,
   bool FP = hasFP(MF);
  
   // Get the number of bytes allocated from the FrameInfo...
-  unsigned NumBytes = MFI->getStackSize();
+  long NumBytes = MFI->getStackSize();
 
   //now if we need to, restore the old FP
   if (FP)