diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-08-22 20:54:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-08-22 20:54:03 +0000 |
commit | f97ae6be182c6f279e6e6fbf62df467ca71af106 (patch) | |
tree | 53bcfbec7e874335a7f8b7766720ce11f64a0849 /lib/CodeGen/Spiller.cpp | |
parent | 9ce42a5ee25f97d3837a1d9725daad689fe3e8dc (diff) | |
download | external_llvm-f97ae6be182c6f279e6e6fbf62df467ca71af106.zip external_llvm-f97ae6be182c6f279e6e6fbf62df467ca71af106.tar.gz external_llvm-f97ae6be182c6f279e6e6fbf62df467ca71af106.tar.bz2 |
Convert DOUT to DEBUG(errs()...).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Spiller.cpp')
-rw-r--r-- | lib/CodeGen/Spiller.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/CodeGen/Spiller.cpp b/lib/CodeGen/Spiller.cpp index faaee0a..19cba9e 100644 --- a/lib/CodeGen/Spiller.cpp +++ b/lib/CodeGen/Spiller.cpp @@ -13,12 +13,13 @@ #include "VirtRegMap.h" #include "llvm/CodeGen/LiveIntervalAnalysis.h" #include "llvm/CodeGen/LiveStackAnalysis.h" +#include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineRegisterInfo.h" -#include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -137,7 +138,8 @@ protected: VNInfo *vni = li->getNextValue(storeInstIdx, 0, true, lis->getVNInfoAllocator()); li->addKill(vni, storeInstIdx, false); - DOUT << " Inserting store range: [" << start << ", " << end << ")\n"; + DEBUG(errs() << " Inserting store range: [" << start + << ", " << end << ")\n"); LiveRange lr(start, end, vni); li->addRange(lr); @@ -202,7 +204,8 @@ protected: VNInfo *vni = li->getNextValue(loadInstIdx, 0, true, lis->getVNInfoAllocator()); li->addKill(vni, lis->getInstructionIndex(mi), false); - DOUT << " Intserting load range: [" << start << ", " << end << ")\n"; + DEBUG(errs() << " Intserting load range: [" << start + << ", " << end << ")\n"); LiveRange lr(start, end, vni); li->addRange(lr); @@ -214,7 +217,7 @@ protected: /// immediately before each use, and stores after each def. No folding is /// attempted. std::vector<LiveInterval*> trivialSpillEverywhere(LiveInterval *li) { - DOUT << "Spilling everywhere " << *li << "\n"; + DEBUG(errs() << "Spilling everywhere " << *li << "\n"); assert(li->weight != HUGE_VALF && "Attempting to spill already spilled value."); @@ -222,7 +225,7 @@ protected: assert(!li->isStackSlot() && "Trying to spill a stack slot."); - DOUT << "Trivial spill everywhere of reg" << li->reg << "\n"; + DEBUG(errs() << "Trivial spill everywhere of reg" << li->reg << "\n"); std::vector<LiveInterval*> added; @@ -234,7 +237,7 @@ protected: MachineInstr *mi = &*regItr; - DOUT << " Processing " << *mi; + DEBUG(errs() << " Processing " << *mi); do { ++regItr; |