From f3e50bea063c5d2870d210f224693cb636cc9520 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 24 Jun 2004 23:54:05 +0000 Subject: [PATCH] Use DEBUG() guard for printing out debug info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14386 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PowerPCRegisterInfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PowerPCRegisterInfo.cpp b/lib/Target/PowerPC/PowerPCRegisterInfo.cpp index da67be3d845..6ac734e9c47 100644 --- a/lib/Target/PowerPC/PowerPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PowerPCRegisterInfo.cpp @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "reginfo" #include "PowerPC.h" #include "PowerPCRegisterInfo.h" #include "PowerPCInstrBuilder.h" @@ -24,6 +25,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachineImpls.h" #include "Support/CommandLine.h" +#include "Support/Debug.h" #include "Support/STLExtras.h" using namespace llvm; @@ -165,7 +167,7 @@ PowerPCRegisterInfo::eliminateFrameIndex(MachineFunction &MF, Offset += MF.getFrameInfo()->getStackSize(); MI.SetMachineOperandConst(i-1, MachineOperand::MO_SignExtendedImmed, Offset); - std::cout << "offset = " << Offset << std::endl; + DEBUG(std::cerr << "offset = " << Offset << std::endl); }