diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-08-22 20:40:21 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-08-22 20:40:21 +0000 |
commit | cbac788324da2e3c7aaf9e9959b4426b52fc88b2 (patch) | |
tree | 734e17b129eb921f1d722d6d1c5504b3c0df32d9 /lib/CodeGen/RegAllocSimple.cpp | |
parent | fbb594f351f401e9e02fb21803d4ef18c060a8db (diff) |
Convert DOUT to DEBUG(errs()...).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocSimple.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocSimple.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/CodeGen/RegAllocSimple.cpp b/lib/CodeGen/RegAllocSimple.cpp index 2d4b9d6de2..5abeb7c1b8 100644 --- a/lib/CodeGen/RegAllocSimple.cpp +++ b/lib/CodeGen/RegAllocSimple.cpp @@ -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 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) { 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 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) { } } MO.setReg(physReg); - DOUT << "virt: " << virtualReg << ", phys: " << MO.getReg() << "\n"; + DEBUG(errs() << "virt: " << virtualReg + << ", phys: " << MO.getReg() << "\n"); } } RegClassIdx.clear(); @@ -238,7 +241,7 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) { /// 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(); |