diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-15 22:41:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-15 22:41:48 +0000 |
commit | e4a94f2b0f5d0468a5bafc6cab613f12bf1b019b (patch) | |
tree | ccfc5989ac489c595a45a5f6fd095b30482f4c9d /lib | |
parent | 167b9629e18bace3e735b87e21ecf7b967672a4b (diff) | |
download | external_llvm-e4a94f2b0f5d0468a5bafc6cab613f12bf1b019b.zip external_llvm-e4a94f2b0f5d0468a5bafc6cab613f12bf1b019b.tar.gz external_llvm-e4a94f2b0f5d0468a5bafc6cab613f12bf1b019b.tar.bz2 |
Only print debug message if DEBUG_RA is on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/SparcV9/SparcV9RegInfo.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Target/SparcV9/SparcV9RegInfo.cpp b/lib/Target/SparcV9/SparcV9RegInfo.cpp index 027e14f..d86bf6c 100644 --- a/lib/Target/SparcV9/SparcV9RegInfo.cpp +++ b/lib/Target/SparcV9/SparcV9RegInfo.cpp @@ -259,13 +259,12 @@ UltraSparcRegInfo::getCallInstNumArgs(const MachineInstr *CallMI) const { // Finds whether a call is an indirect call //--------------------------------------------------------------------------- bool UltraSparcRegInfo::isVarArgCall(const MachineInstr *CallMI) const { + assert(UltraSparcInfo->getInstrInfo().isCall(CallMI->getOpCode())); - assert ( (UltraSparcInfo->getInstrInfo()).isCall(CallMI->getOpCode()) ); - - const MachineOperand & calleeOp = CallMI->getOperand(0); - Value *calleeVal = calleeOp.getVRegValue(); + const MachineOperand &calleeOp = CallMI->getOperand(0); + Value *calleeVal = calleeOp.getVRegValue(); - PointerType *PT = cast<PointerType>(calleeVal->getType()); + PointerType *PT = cast<PointerType>(calleeVal->getType()); return cast<FunctionType>(PT->getElementType())->isVarArg(); } @@ -702,9 +701,8 @@ void UltraSparcRegInfo::colorCallArgs(const MachineInstr *CallMI, unsigned NumOfCallArgs = getCallInstNumArgs( CallMI ); - bool VarArgCall = isVarArgCall( CallMI ); - - if(VarArgCall) cerr << "\nVar arg call found!!\n"; + bool VarArgCall = isVarArgCall(CallMI); + if (DEBUG_RA && VarArgCall) cerr << "\nVar arg call found!!\n"; for(unsigned argNo=0, i=0; i < NumOfCallArgs; ++i, ++argNo ) { |