[llvm-commits] [llvm] r92644 - /llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:28:54 PST 2010
Author: greened
Date: Mon Jan 4 19:28:53 2010
New Revision: 92644
URL: http://llvm.org/viewvc/llvm-project?rev=92644&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
Modified: llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp?rev=92644&r1=92643&r2=92644&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp Mon Jan 4 19:28:53 2010
@@ -135,7 +135,7 @@
IsPIC = TM.getRelocationModel() == Reloc::PIC_;
do {
- DEBUG(errs() << "JITTing function '"
+ DEBUG(dbgs() << "JITTing function '"
<< MF.getFunction()->getName() << "'\n");
MCE.startFunction(MF);
for (MachineFunction::iterator MBB = MF.begin(), E = MF.end();
@@ -477,7 +477,7 @@
template<class CodeEmitter>
void Emitter<CodeEmitter>::emitInstruction(const MachineInstr &MI,
const TargetInstrDesc *Desc) {
- DEBUG(errs() << MI);
+ DEBUG(dbgs() << MI);
MCE.processDebugLoc(MI.getDebugLoc(), true);
@@ -618,11 +618,11 @@
const MachineOperand &MO = MI.getOperand(CurOp++);
- DEBUG(errs() << "RawFrm CurOp " << CurOp << "\n");
- DEBUG(errs() << "isMBB " << MO.isMBB() << "\n");
- DEBUG(errs() << "isGlobal " << MO.isGlobal() << "\n");
- DEBUG(errs() << "isSymbol " << MO.isSymbol() << "\n");
- DEBUG(errs() << "isImm " << MO.isImm() << "\n");
+ DEBUG(dbgs() << "RawFrm CurOp " << CurOp << "\n");
+ DEBUG(dbgs() << "isMBB " << MO.isMBB() << "\n");
+ DEBUG(dbgs() << "isGlobal " << MO.isGlobal() << "\n");
+ DEBUG(dbgs() << "isSymbol " << MO.isSymbol() << "\n");
+ DEBUG(dbgs() << "isImm " << MO.isImm() << "\n");
if (MO.isMBB()) {
emitPCRelativeBlockAddress(MO.getMBB());
@@ -843,7 +843,7 @@
if (!Desc->isVariadic() && CurOp != NumOps) {
#ifndef NDEBUG
- errs() << "Cannot encode all operands of: " << MI << "\n";
+ dbgs() << "Cannot encode all operands of: " << MI << "\n";
#endif
llvm_unreachable(0);
}
@@ -1082,9 +1082,9 @@
}
if (!OK) {
- errs() << "couldn't convert inst '";
+ dbgs() << "couldn't convert inst '";
MI.dump();
- errs() << "' to machine instr:\n";
+ dbgs() << "' to machine instr:\n";
Instr->dump();
}
More information about the llvm-commits
mailing list