mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-21 14:34:12 +00:00
Move some warnings to debug mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user