diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-06-06 00:27:02 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-06-06 00:27:02 +0000 |
commit | f4ef4c881f851ae019f9f48d5473f9f1586d1dbc (patch) | |
tree | b1490fd996db24f9380002b3ac44ac1d3eb67a5d /utils | |
parent | 8f1222245e63e06d605eff3714faad3100c73a80 (diff) | |
download | external_llvm-f4ef4c881f851ae019f9f48d5473f9f1586d1dbc.zip external_llvm-f4ef4c881f851ae019f9f48d5473f9f1586d1dbc.tar.gz external_llvm-f4ef4c881f851ae019f9f48d5473f9f1586d1dbc.tar.bz2 |
All debug print statements are now output with the DEBUG() guard to make
output clean so that tests can automatically diff the output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeEmitterGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index cd259ec..293d1ae 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -21,14 +21,14 @@ void CodeEmitterGen::createEmitter(std::ostream &o) { 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 @@ void CodeEmitterGen::createEmitter(std::ostream &o) { << " }\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" |