Move some warnings to debug mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30933 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/DataStructure/CompleteBottomUp.cpp b/lib/Analysis/DataStructure/CompleteBottomUp.cpp
index ea21a4f..90c14b4 100644
--- a/lib/Analysis/DataStructure/CompleteBottomUp.cpp
+++ b/lib/Analysis/DataStructure/CompleteBottomUp.cpp
@@ -52,16 +52,15 @@
if (!MainFunc->isExternal())
calculateSCCGraphs(getOrCreateGraph(*MainFunc), Stack, NextID, ValMap);
} else {
- std::cerr << "CBU-DSA: No 'main' function found!\n";
+ DEBUG(std::cerr << "CBU-DSA: No 'main' function found!\n");
}
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
if (!I->isExternal() && !DSInfo.count(I)) {
-#ifndef NDEBUG
- if (MainFunc)
- std::cerr << "*** CBU: Function unreachable from main: "
- << I->getName() << "\n";
-#endif
+ if (MainFunc) {
+ DEBUG(std::cerr << "*** CBU: Function unreachable from main: "
+ << I->getName() << "\n");
+ }
calculateSCCGraphs(getOrCreateGraph(*I), Stack, NextID, ValMap);
}