[llvm-commits] CVS: llvm/utils/TableGen/CodeEmitterGen.cpp
Misha Brukman
brukman at cs.uiuc.edu
Thu Jun 5 19:28:02 PDT 2003
Changes in directory llvm/utils/TableGen:
CodeEmitterGen.cpp updated: 1.7 -> 1.8
---
Log message:
All debug print statements are now output with the DEBUG() guard to make
output clean so that tests can automatically diff the output.
---
Diffs of the changes:
Index: llvm/utils/TableGen/CodeEmitterGen.cpp
diff -u llvm/utils/TableGen/CodeEmitterGen.cpp:1.7 llvm/utils/TableGen/CodeEmitterGen.cpp:1.8
--- llvm/utils/TableGen/CodeEmitterGen.cpp:1.7 Thu Jun 5 18:15:25 2003
+++ llvm/utils/TableGen/CodeEmitterGen.cpp Thu Jun 5 19:27:02 2003
@@ -21,14 +21,14 @@
o << "unsigned " << ClassName
<< "getBinaryCodeForInstr(MachineInstr &MI) {\n"
<< " unsigned Value = 0;\n"
- << " std::cerr << MI;\n"
+ << " DEBUG(std::cerr << MI);\n"
<< " switch (MI.getOpcode()) {\n";
for (std::vector<Record*>::iterator I = Insts.begin(), E = Insts.end();
I != E; ++I)
{
Record *R = *I;
o << " case " << Namespace << R->getName() << ": {\n"
- << " std::cerr << \"Emitting " << R->getName() << "\\n\";\n";
+ << " DEBUG(std::cerr << \"Emitting " << R->getName() << "\\n\");\n";
const RecordVal *InstVal = R->getValue("Inst");
Init *InitVal = InstVal->getValue();
@@ -115,7 +115,7 @@
<< " }\n";
}
o << " default:\n"
- << " std::cerr << \"Not supported instr: \" << MI << \"\\n\";\n"
+ << " DEBUG(std::cerr << \"Not supported instr: \" << MI << \"\\n\");\n"
<< " abort();\n"
<< " }\n"
<< " return Value;\n"
More information about the llvm-commits
mailing list