summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/PHITransAddr.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-12-23 21:06:14 +0000
committerDavid Greene <greened@obbligato.org>2009-12-23 21:06:14 +0000
commit04e7ae6a575a7a7a9e8c712962eed6174905a189 (patch)
tree8afcaaf0525e58a8bdf3561132781a34ce57f349 /llvm/lib/Analysis/PHITransAddr.cpp
parent721fb2b6e4059d5054428ac13fee36dfab9962ef (diff)
downloadbcm5719-llvm-04e7ae6a575a7a7a9e8c712962eed6174905a189.tar.gz
bcm5719-llvm-04e7ae6a575a7a7a9e8c712962eed6174905a189.zip
Convert debug messages to use dbgs(). Generally this means
s/errs/dbgs/g except for certain special cases. llvm-svn: 92046
Diffstat (limited to 'llvm/lib/Analysis/PHITransAddr.cpp')
-rw-r--r--llvm/lib/Analysis/PHITransAddr.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/PHITransAddr.cpp b/llvm/lib/Analysis/PHITransAddr.cpp
index 07e291971a8..78bdb419fa9 100644
--- a/llvm/lib/Analysis/PHITransAddr.cpp
+++ b/llvm/lib/Analysis/PHITransAddr.cpp
@@ -14,6 +14,7 @@
#include "llvm/Analysis/PHITransAddr.h"
#include "llvm/Analysis/Dominators.h"
#include "llvm/Analysis/InstructionSimplify.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
@@ -35,12 +36,12 @@ static bool CanPHITrans(Instruction *Inst) {
void PHITransAddr::dump() const {
if (Addr == 0) {
- errs() << "PHITransAddr: null\n";
+ dbgs() << "PHITransAddr: null\n";
return;
}
- errs() << "PHITransAddr: " << *Addr << "\n";
+ dbgs() << "PHITransAddr: " << *Addr << "\n";
for (unsigned i = 0, e = InstInputs.size(); i != e; ++i)
- errs() << " Input #" << i << " is " << *InstInputs[i] << "\n";
+ dbgs() << " Input #" << i << " is " << *InstInputs[i] << "\n";
}
@@ -62,9 +63,9 @@ static bool VerifySubExpr(Value *Expr,
// If it isn't in the InstInputs list it is a subexpr incorporated into the
// address. Sanity check that it is phi translatable.
if (!CanPHITrans(I)) {
- errs() << "Non phi translatable instruction found in PHITransAddr, either "
+ dbgs() << "Non phi translatable instruction found in PHITransAddr, either "
"something is missing from InstInputs or CanPHITrans is wrong:\n";
- errs() << *I << '\n';
+ dbgs() << *I << '\n';
return false;
}
@@ -88,9 +89,9 @@ bool PHITransAddr::Verify() const {
return false;
if (!Tmp.empty()) {
- errs() << "PHITransAddr inconsistent, contains extra instructions:\n";
+ dbgs() << "PHITransAddr inconsistent, contains extra instructions:\n";
for (unsigned i = 0, e = InstInputs.size(); i != e; ++i)
- errs() << " InstInput #" << i << " is " << *InstInputs[i] << "\n";
+ dbgs() << " InstInput #" << i << " is " << *InstInputs[i] << "\n";
return false;
}
OpenPOWER on IntegriCloud