Use DEBUG macro for debug output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Goodwin 2009-08-11 17:56:42 +00:00
parent 1d96ccc69a
commit 7cd0118c36

View File

@ -826,17 +826,13 @@ void SchedulePostRATDList::ListScheduleTopDown() {
MinDepth = PendingQueue[i]->getDepth(); MinDepth = PendingQueue[i]->getDepth();
} }
#ifndef NDEBUG DEBUG(errs() << "\n*** Examining Available\n";
{ LatencyPriorityQueue q = AvailableQueue;
errs() << "\n*** Examining Available\n"; while (!q.empty()) {
LatencyPriorityQueue q = AvailableQueue; SUnit *su = q.pop();
while (!q.empty()) { errs() << "Height " << su->getHeight() << ": ";
SUnit *su = q.pop(); su->dump(this);
errs() << "Height " << su->getHeight() << ": "; });
su->dump(this);
}
}
#endif
SUnit *FoundSUnit = 0; SUnit *FoundSUnit = 0;