Use DEBUG macro for debug output.
authorDavid Goodwin <david_goodwin@apple.com>
Tue, 11 Aug 2009 17:56:42 +0000 (17:56 +0000)
committerDavid Goodwin <david_goodwin@apple.com>
Tue, 11 Aug 2009 17:56:42 +0000 (17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78694 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PostRASchedulerList.cpp

index 1606532e47fe8145feadf876f093cbe3ec654a8a..944bfee8a9fa402181ebdd5d761068b3957fa299 100644 (file)
@@ -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;