diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-26 10:17:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-26 10:17:54 +0000 |
commit | 0d45a096cff7de5b487f7f7aac17684945dd0b93 (patch) | |
tree | 7f3873d73b07a1c1ef837bdc0a824d60bdf69274 /lib/Transforms/Utils/LowerSwitch.cpp | |
parent | 0a81aac4b46eed130d20714af5a1c01b05d0275e (diff) |
Remove #include <iostream> and use llvm_* streams instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerSwitch.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerSwitch.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index 724499d1ba..401f61724e 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -23,7 +23,6 @@ #include "llvm/Support/Compiler.h" #include "llvm/ADT/Statistic.h" #include <algorithm> -#include <iostream> using namespace llvm; namespace { @@ -97,7 +96,7 @@ bool LowerSwitch::runOnFunction(Function &F) { // operator<< - Used for debugging purposes. // -std::ostream& operator<<(std::ostream &O, +llvm_ostream& operator<<(llvm_ostream &O, const std::vector<LowerSwitch::Case> &C) { O << "["; @@ -124,14 +123,13 @@ BasicBlock* LowerSwitch::switchConvert(CaseItr Begin, CaseItr End, unsigned Mid = Size / 2; std::vector<Case> LHS(Begin, Begin + Mid); - DEBUG(std::cerr << "LHS: " << LHS << "\n"); + DOUT << "LHS: " << LHS << "\n"; std::vector<Case> RHS(Begin + Mid, End); - DEBUG(std::cerr << "RHS: " << RHS << "\n"); + DOUT << "RHS: " << RHS << "\n"; Case& Pivot = *(Begin + Mid); - DEBUG(std::cerr << "Pivot ==> " - << cast<ConstantInt>(Pivot.first)->getSExtValue() - << "\n"); + DOUT << "Pivot ==> " + << cast<ConstantInt>(Pivot.first)->getSExtValue() << "\n"; BasicBlock* LBranch = switchConvert(LHS.begin(), LHS.end(), Val, OrigBlock, Default); @@ -226,7 +224,7 @@ void LowerSwitch::processSwitchInst(SwitchInst *SI) { Cases.push_back(Case(SI->getSuccessorValue(i), SI->getSuccessor(i))); std::sort(Cases.begin(), Cases.end(), CaseCmp()); - DEBUG(std::cerr << "Cases: " << Cases << "\n"); + DOUT << "Cases: " << Cases << "\n"; BasicBlock* SwitchBlock = switchConvert(Cases.begin(), Cases.end(), Val, OrigBlock, NewDefault); |