summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-03-05 15:30:33 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-03-05 15:30:33 +0000
commit7c954c6d136a222f394db62fd3bd4c162bf2a144 (patch)
tree72492a018cd830f8d1bb0a49c9be140acba60318 /llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
parentcfe2822cdf70822d696a474ea0d53d31df45fc30 (diff)
downloadbcm5719-llvm-7c954c6d136a222f394db62fd3bd4c162bf2a144.tar.gz
bcm5719-llvm-7c954c6d136a222f394db62fd3bd4c162bf2a144.zip
fix data size stuff for architectures with bit challenged data types
llvm-svn: 20453
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp b/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
index 2513e7aa218..3d2b354b0b3 100644
--- a/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
+++ b/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
@@ -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)
OpenPOWER on IntegriCloud