From 3091e117265dc2d9d412daed578896cca0272f04 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 25 Jul 2002 06:08:32 +0000 Subject: GCC 3.1 changes, finally the burm file builds the FIRST time a clean directory is built. llvm-svn: 3073 --- llvm/lib/Target/Sparc/SparcRegInfo.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target/Sparc/SparcRegInfo.cpp') 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& 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& mvec, int Offset, unsigned DestReg, int RegType, - int scratchReg = -1) const { + int scratchReg) const { MachineInstr * MI = NULL; switch (RegType) { case IntRegType: -- cgit v1.2.3