[llvm-commits] [llvm] r79759 - /llvm/trunk/lib/CodeGen/RegAllocSimple.cpp
Bill Wendling
isanbard at gmail.com
Sat Aug 22 13:40:21 PDT 2009
Author: void
Date: Sat Aug 22 15:40:21 2009
New Revision: 79759
URL: http://llvm.org/viewvc/llvm-project?rev=79759&view=rev
Log:
Convert DOUT to DEBUG(errs()...).
Modified:
llvm/trunk/lib/CodeGen/RegAllocSimple.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocSimple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocSimple.cpp?rev=79759&r1=79758&r2=79759&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocSimple.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocSimple.cpp Sat Aug 22 15:40:21 2009
@@ -23,8 +23,9 @@
#include "llvm/CodeGen/RegAllocRegistry.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
-#include "llvm/Support/Debug.h"
#include "llvm/Support/Compiler.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/STLExtras.h"
#include <map>
@@ -196,9 +197,10 @@
if (MO.isReg() && MO.getReg() &&
TargetRegisterInfo::isVirtualRegister(MO.getReg())) {
unsigned virtualReg = (unsigned) MO.getReg();
- DOUT << "op: " << MO << "\n";
- DOUT << "\t inst[" << i << "]: ";
- DEBUG(MI->print(*cerr.stream(), TM));
+ DEBUG({
+ errs() << "op: " << MO << "\n" << "\t inst[" << i << "]: ";
+ MI->print(errs(), TM);
+ });
// make sure the same virtual register maps to the same physical
// register in any given instruction
@@ -226,7 +228,8 @@
}
}
MO.setReg(physReg);
- DOUT << "virt: " << virtualReg << ", phys: " << MO.getReg() << "\n";
+ DEBUG(errs() << "virt: " << virtualReg
+ << ", phys: " << MO.getReg() << "\n");
}
}
RegClassIdx.clear();
@@ -238,7 +241,7 @@
/// runOnMachineFunction - Register allocate the whole function
///
bool RegAllocSimple::runOnMachineFunction(MachineFunction &Fn) {
- DOUT << "Machine Function\n";
+ DEBUG(errs() << "Machine Function\n");
MF = &Fn;
TM = &MF->getTarget();
TRI = TM->getRegisterInfo();
More information about the llvm-commits
mailing list