summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcRegInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-25 06:08:32 +0000
committerChris Lattner <sabre@nondot.org>2002-07-25 06:08:32 +0000
commit3091e117265dc2d9d412daed578896cca0272f04 (patch)
tree62d5e52bcec1921ca27dc1fa27bcae7f022ac28f /llvm/lib/Target/Sparc/SparcRegInfo.cpp
parent2d380955dd828ab322c94b4a946a33ce3f15f61c (diff)
downloadbcm5719-llvm-3091e117265dc2d9d412daed578896cca0272f04.tar.gz
bcm5719-llvm-3091e117265dc2d9d412daed578896cca0272f04.zip
GCC 3.1 changes, finally the burm file builds the FIRST time a clean directory is built.
llvm-svn: 3073
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcRegInfo.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcRegInfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRegInfo.cpp b/llvm/lib/Target/Sparc/SparcRegInfo.cpp
index c321adc25fb..b875dbed224 100644
--- a/llvm/lib/Target/Sparc/SparcRegInfo.cpp
+++ b/llvm/lib/Target/Sparc/SparcRegInfo.cpp
@@ -168,6 +168,7 @@ UltraSparcRegInfo::regNumForFPArg(unsigned regType,
InvalidRegNum : SparcFloatRegOrder::f0 + (argNo * 2);
else
assert(0 && "Illegal FP register type");
+ return 0;
}
}
@@ -224,7 +225,7 @@ int UltraSparcRegInfo::getRegType(int unifiedRegNum) const {
// To find the register class used for a specified Type
//
unsigned UltraSparcRegInfo::getRegClassIDOfType(const Type *type,
- bool isCCReg = false) const {
+ bool isCCReg) const {
Type::PrimitiveID ty = type->getPrimitiveID();
unsigned res;
@@ -1116,7 +1117,7 @@ UltraSparcRegInfo::cpReg2MemMI(vector<MachineInstr*>& mvec,
unsigned SrcReg,
unsigned DestPtrReg,
int Offset, int RegType,
- int scratchReg = -1) const {
+ int scratchReg) const {
MachineInstr * MI = NULL;
switch( RegType ) {
case IntRegType:
@@ -1185,7 +1186,7 @@ UltraSparcRegInfo::cpMem2RegMI(vector<MachineInstr*>& mvec,
int Offset,
unsigned DestReg,
int RegType,
- int scratchReg = -1) const {
+ int scratchReg) const {
MachineInstr * MI = NULL;
switch (RegType) {
case IntRegType:
OpenPOWER on IntegriCloud