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 | f7300b270672cec5488d659004f0c13acb8f8942 (patch) | |
| tree | 78e479819813cb454278be8dee767ac7de3ee966 /llvm/utils/TableGen | |
| parent | c3d341ea9898bea9db1b9043d8f7b55d769d2629 (diff) | |
| download | bcm5719-llvm-f7300b270672cec5488d659004f0c13acb8f8942.tar.gz bcm5719-llvm-f7300b270672cec5488d659004f0c13acb8f8942.zip | |
It was pointed out that DEBUG() is only available with -debug.
llvm-svn: 29106
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index cef7acf70de..b4649d4c0bd 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/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); } |

