diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-07-11 18:25:13 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-07-11 18:25:13 +0000 |
commit | 16d42c6ac65e19aedfb4853724416cefda27134e (patch) | |
tree | 0469d28944cb2cb4cfaa09bc5cade67bdaa8c5b1 | |
parent | e37fe9b3a1cadceb42ac27fa0718f5a10ea2f0e6 (diff) |
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
-rw-r--r-- | lib/Analysis/IPA/Andersens.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 4 | ||||
-rw-r--r-- | lib/Target/IA64/IA64ISelDAGToDAG.cpp | 6 | ||||
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 16 |
4 files changed, 23 insertions, 7 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index fa9071b992..1fc70e62a3 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -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]; diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 528225223d..186b041b58 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -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: diff --git a/lib/Target/IA64/IA64ISelDAGToDAG.cpp b/lib/Target/IA64/IA64ISelDAGToDAG.cpp index d004f0c70c..2289687ab1 100644 --- a/lib/Target/IA64/IA64ISelDAGToDAG.cpp +++ b/lib/Target/IA64/IA64ISelDAGToDAG.cpp @@ -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! diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index cef7acf70d..b4649d4c0b 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -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); } |