summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-09 19:30:36 +0000
committerChris Lattner <sabre@nondot.org>2004-10-09 19:30:36 +0000
commit5c91c8f18b69038000257cabab2b7b00de20b929 (patch)
tree38cb0f9a67b7361e41092218751d970ad4770c37 /llvm/lib/Transforms
parent99e4111d335f541c227d5d1da726531648b957b0 (diff)
downloadbcm5719-llvm-5c91c8f18b69038000257cabab2b7b00de20b929.tar.gz
bcm5719-llvm-5c91c8f18b69038000257cabab2b7b00de20b929.zip
Use DEBUG instead of DebugFlag directly, as DebugFlag does not respect
-debug-only! llvm-svn: 16868
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/SCCP.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index 46d90afc44e..7921a235d26 100644
--- a/llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/llvm/lib/Transforms/Scalar/SCCP.cpp
@@ -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.
OpenPOWER on IntegriCloud