diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-10-13 17:38:22 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-10-13 17:38:22 +0000 |
commit | 7445ea6b177abcf7da1daa4abe5cbbb014fbb932 (patch) | |
tree | 1aef3aa88eaaf328b31866080f42413b3a52e465 /lib/Analysis/DataStructure/CompleteBottomUp.cpp | |
parent | 33d06bcfd41447b94cd66126b948469d41f7f2ef (diff) |
Move some warnings to debug mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/CompleteBottomUp.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/CompleteBottomUp.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Analysis/DataStructure/CompleteBottomUp.cpp b/lib/Analysis/DataStructure/CompleteBottomUp.cpp index ea21a4f030..90c14b408f 100644 --- a/lib/Analysis/DataStructure/CompleteBottomUp.cpp +++ b/lib/Analysis/DataStructure/CompleteBottomUp.cpp @@ -52,16 +52,15 @@ bool CompleteBUDataStructures::runOnModule(Module &M) { 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); } |