[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp

Jim Laskey jlaskey at apple.com
Tue Jul 11 11:25:27 PDT 2006



Changes in directory llvm/utils/TableGen:

DAGISelEmitter.cpp updated: 1.218 -> 1.219
---
Log message:

It was pointed out that DEBUG() is only available with -debug.


---
Diffs of the changes:  (+12 -4)

 DAGISelEmitter.cpp |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)


Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.218 llvm/utils/TableGen/DAGISelEmitter.cpp:1.219
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.218	Tue Jul 11 12:58:07 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp	Tue Jul 11 13:25:13 2006
@@ -2136,7 +2136,9 @@
         if (DefInit *Pred = dynamic_cast<DefInit*>(Predicates->getElement(i))) {
           Record *Def = Pred->getDef();
           if (!Def->isSubClassOf("Predicate")) {
-            DEBUG(Def->dump());
+#ifndef NDEBUG
+            Def->dump();
+#endif
             assert(0 && "Unknown predicate type!");
           }
           if (!PredicateCheck.empty())
@@ -2344,8 +2346,10 @@
             emitCheck("cast<CondCodeSDNode>(" + RootName + utostr(OpNo) +
                       ")->get() == ISD::" + LeafRec->getName());
           } else {
-            DEBUG(Child->dump());
+#ifndef NDEBUG
+            Child->dump();
             std::cerr << " ";
+#endif
             assert(0 && "Unknown leaf type!");
           }
         } else if (IntInit *II =
@@ -2357,7 +2361,9 @@
 
           emitCheck("CN" + utostr(CTmp) + " == " +itostr(II->getValue()));
         } else {
-          DEBUG(Child->dump());
+#ifndef NDEBUG
+          Child->dump();
+#endif
           assert(0 && "Unknown leaf type!");
         }
       }
@@ -2510,7 +2516,9 @@
         return std::make_pair(1, ResNo);
       }
     
-      DEBUG(N->dump());
+#ifndef NDEBUG
+      N->dump();
+#endif
       assert(0 && "Unknown leaf type!");
       return std::make_pair(1, ~0U);
     }






More information about the llvm-commits mailing list