Reduce bloat in target libraries by removing per machine instruction assertion
authorJim Laskey <jlaskey@mac.com>
Tue, 11 Jul 2006 01:25:59 +0000 (01:25 +0000)
committerJim Laskey <jlaskey@mac.com>
Tue, 11 Jul 2006 01:25:59 +0000 (01:25 +0000)
from code emitter generation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29097 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeEmitterGen.cpp

index 15b35d5d5dbc8a7d875e3b9a7c84709b6f902666..18827ab76a0eed5ab6cca571e8dbd4e1c4fd7205 100644 (file)
@@ -82,7 +82,6 @@ void CodeEmitterGen::run(std::ostream &o) {
   o << "unsigned " << Target.getName() << "CodeEmitter::"
     << "getBinaryCodeForInstr(MachineInstr &MI) {\n"
     << "  unsigned Value = 0;\n"
-    << "  DEBUG(std::cerr << MI);\n"
     << "  switch (MI.getOpcode()) {\n";
 
   // Emit a case statement for each opcode
@@ -91,8 +90,7 @@ void CodeEmitterGen::run(std::ostream &o) {
     Record *R = *I;
     if (R->getName() == "PHI" || R->getName() == "INLINEASM") continue;
     
-    o << "    case " << Namespace << R->getName() << ": {\n"
-      << "      DEBUG(std::cerr << \"Emitting " << R->getName() << "\\n\");\n";
+    o << "    case " << Namespace << R->getName() << ": {\n";
 
     BitsInit *BI = R->getValueAsBitsInit("Inst");