[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Jim Laskey
jlaskey at apple.com
Tue Jul 11 10:58:23 PDT 2006
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.217 -> 1.218
---
Log message:
Ensure that dump calls that are associated with asserts are removed from
non-debug build.
---
Diffs of the changes: (+4 -4)
DAGISelEmitter.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.217 llvm/utils/TableGen/DAGISelEmitter.cpp:1.218
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.217 Thu Jun 29 18:57:05 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Tue Jul 11 12:58:07 2006
@@ -2136,7 +2136,7 @@
if (DefInit *Pred = dynamic_cast<DefInit*>(Predicates->getElement(i))) {
Record *Def = Pred->getDef();
if (!Def->isSubClassOf("Predicate")) {
- Def->dump();
+ DEBUG(Def->dump());
assert(0 && "Unknown predicate type!");
}
if (!PredicateCheck.empty())
@@ -2344,7 +2344,7 @@
emitCheck("cast<CondCodeSDNode>(" + RootName + utostr(OpNo) +
")->get() == ISD::" + LeafRec->getName());
} else {
- Child->dump();
+ DEBUG(Child->dump());
std::cerr << " ";
assert(0 && "Unknown leaf type!");
}
@@ -2357,7 +2357,7 @@
emitCheck("CN" + utostr(CTmp) + " == " +itostr(II->getValue()));
} else {
- Child->dump();
+ DEBUG(Child->dump());
assert(0 && "Unknown leaf type!");
}
}
@@ -2510,7 +2510,7 @@
return std::make_pair(1, ResNo);
}
- N->dump();
+ DEBUG(N->dump());
assert(0 && "Unknown leaf type!");
return std::make_pair(1, ~0U);
}
More information about the llvm-commits
mailing list