mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Convert debug messages to use dbgs(). Generally this means
s/errs/dbgs/g except for certain special cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92046 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d387b2b1cf
commit
2a0f3ccc9c
@ -14,6 +14,7 @@
|
|||||||
#include "llvm/Analysis/PHITransAddr.h"
|
#include "llvm/Analysis/PHITransAddr.h"
|
||||||
#include "llvm/Analysis/Dominators.h"
|
#include "llvm/Analysis/Dominators.h"
|
||||||
#include "llvm/Analysis/InstructionSimplify.h"
|
#include "llvm/Analysis/InstructionSimplify.h"
|
||||||
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -35,12 +36,12 @@ static bool CanPHITrans(Instruction *Inst) {
|
|||||||
|
|
||||||
void PHITransAddr::dump() const {
|
void PHITransAddr::dump() const {
|
||||||
if (Addr == 0) {
|
if (Addr == 0) {
|
||||||
errs() << "PHITransAddr: null\n";
|
dbgs() << "PHITransAddr: null\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
errs() << "PHITransAddr: " << *Addr << "\n";
|
dbgs() << "PHITransAddr: " << *Addr << "\n";
|
||||||
for (unsigned i = 0, e = InstInputs.size(); i != e; ++i)
|
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
|
// If it isn't in the InstInputs list it is a subexpr incorporated into the
|
||||||
// address. Sanity check that it is phi translatable.
|
// address. Sanity check that it is phi translatable.
|
||||||
if (!CanPHITrans(I)) {
|
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";
|
"something is missing from InstInputs or CanPHITrans is wrong:\n";
|
||||||
errs() << *I << '\n';
|
dbgs() << *I << '\n';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,9 +89,9 @@ bool PHITransAddr::Verify() const {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!Tmp.empty()) {
|
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)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user