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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29106 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index cef7acf..b4649d4 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -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);
     }