Use DEBUG instead of DebugFlag directly, as DebugFlag does not respect
authorChris Lattner <sabre@nondot.org>
Sat, 9 Oct 2004 19:30:36 +0000 (19:30 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Oct 2004 19:30:36 +0000 (19:30 +0000)
-debug-only!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16868 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SCCP.cpp

index 46d90afc44ea410cd5de9da5869812a78113b283..7921a235d26360b8360f77cd657f6f6f0811caf9 100644 (file)
@@ -344,11 +344,9 @@ bool SCCP::runOnFunction(Function &F) {
     }
   }
 
-  if (DebugFlag) {
-    for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
-      if (!BBExecutable.count(I))
-        std::cerr << "BasicBlock Dead:" << *I;
-  }
+  DEBUG(for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
+          if (!BBExecutable.count(I))
+             std::cerr << "BasicBlock Dead:" << *I);
 
   // Iterate over all of the instructions in a function, replacing them with
   // constants if we have found them to be of constant values.