summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-06-24 23:54:05 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-06-24 23:54:05 +0000
commita79dd915b7b8a92e6984de5966a97ee249c2f6bf (patch)
treee71321279fb237017dd3e895a5d9d8b38a35c5df
parentc45a5a369d1f8f4ee4475b1a0d7d87e27221c53c (diff)
downloadbcm5719-llvm-a79dd915b7b8a92e6984de5966a97ee249c2f6bf.tar.gz
bcm5719-llvm-a79dd915b7b8a92e6984de5966a97ee249c2f6bf.zip
Use DEBUG() guard for printing out debug info.
llvm-svn: 14386
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp b/llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp
index da67be3d845..6ac734e9c47 100644
--- a/llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud