It was pointed out that DEBUG() is only available with -debug.
authorJim Laskey <jlaskey@mac.com>
Tue, 11 Jul 2006 18:25:13 +0000 (18:25 +0000)
committerJim Laskey <jlaskey@mac.com>
Tue, 11 Jul 2006 18:25:13 +0000 (18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29106 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/Andersens.cpp
lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
lib/Target/IA64/IA64ISelDAGToDAG.cpp
utils/TableGen/DAGISelEmitter.cpp

index fa9071b9922e9b04bd56112763c907dbc0a59925..1fc70e62a35758dd59dbd4aad192694c4e2103bb 100644 (file)
@@ -260,7 +260,9 @@ namespace {
 
       std::map<Value*, unsigned>::iterator I = ValueNodes.find(V);
       if (I == ValueNodes.end()) {
-        DEBUG(V->dump());
+#ifndef NDEBUG
+        V->dump();
+#endif
         assert(0 && "Value does not have a node in the points-to graph!");
       }
       return &GraphNodes[I->second];
index 528225223decbf8f56de94a62013fba319b99d0f..186b041b586d98768b386404a80668b0e1e34cb0 100644 (file)
@@ -421,7 +421,9 @@ void ScheduleDAG::EmitNode(SDNode *Node,
   } else {
     switch (Node->getOpcode()) {
     default:
-      DEBUG(Node->dump()); 
+#ifndef NDEBUG
+      Node->dump();
+#endif
       assert(0 && "This target-independent node should have been selected!");
     case ISD::EntryToken: // fall thru
     case ISD::TokenFactor:
index d004f0c70c6311ebc9a292bb2793d0e24fc7df99..2289687ab1ae8ed2c4cffbb2ec988c74c731cf33 100644 (file)
@@ -511,7 +511,11 @@ void IA64DAGToDAGISel::Select(SDOperand &Result, SDOperand Op) {
       N->getValueType(0) : cast<VTSDNode>(N->getOperand(3))->getVT();
     unsigned Opc;
     switch (TypeBeingLoaded) {
-    default: DEBUG(N->dump()); assert(0 && "Cannot load this type!");
+    default:
+#ifndef NDEBUG
+      N->dump();
+#endif
+      assert(0 && "Cannot load this type!");
     case MVT::i1: { // this is a bool
       Opc = IA64::LD1; // first we load a byte, then compare for != 0
       if(N->getValueType(0) == MVT::i1) { // XXX: early exit!
index cef7acf70dea5dbad91b1a32131f948635496523..b4649d4c0bd75edd88273477439b3c0d405f899f 100644 (file)
@@ -2136,7 +2136,9 @@ public:
         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 @@ public:
             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 @@ public:
 
           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 @@ public:
         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);
     }