aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-08-11 17:56:42 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-08-11 17:56:42 +0000
commit387579f3b477c8aba1ad37513006f4f5cbc6c048 (patch)
treea1a3f6d20fd16d2ecad4dcd2cc8dc8ddb46c5e47
parent804572246234cc9c43ceb45e0d5d2cd495e0132d (diff)
downloadexternal_llvm-387579f3b477c8aba1ad37513006f4f5cbc6c048.zip
external_llvm-387579f3b477c8aba1ad37513006f4f5cbc6c048.tar.gz
external_llvm-387579f3b477c8aba1ad37513006f4f5cbc6c048.tar.bz2
Use DEBUG macro for debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78694 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/PostRASchedulerList.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp
index 1606532..944bfee 100644
--- a/lib/CodeGen/PostRASchedulerList.cpp
+++ b/lib/CodeGen/PostRASchedulerList.cpp
@@ -826,17 +826,13 @@ void SchedulePostRATDList::ListScheduleTopDown() {
MinDepth = PendingQueue[i]->getDepth();
}
-#ifndef NDEBUG
- {
- errs() << "\n*** Examining Available\n";
- LatencyPriorityQueue q = AvailableQueue;
- while (!q.empty()) {
- SUnit *su = q.pop();
- errs() << "Height " << su->getHeight() << ": ";
- su->dump(this);
- }
- }
-#endif
+ DEBUG(errs() << "\n*** Examining Available\n";
+ LatencyPriorityQueue q = AvailableQueue;
+ while (!q.empty()) {
+ SUnit *su = q.pop();
+ errs() << "Height " << su->getHeight() << ": ";
+ su->dump(this);
+ });
SUnit *FoundSUnit = 0;