Add a error message to cbu to match bu

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2006-06-16 14:43:36 +00:00
parent 73a38a9071
commit c269c5269a

View File

@ -56,8 +56,14 @@ bool CompleteBUDataStructures::runOnModule(Module &M) {
}
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
if (!I->isExternal() && !DSInfo.count(I))
if (!I->isExternal() && !DSInfo.count(I)) {
#ifndef NDEBUG
if (MainFunc)
std::cerr << "*** CBU: Function unreachable from main: "
<< I->getName() << "\n";
#endif
calculateSCCGraphs(getOrCreateGraph(*I), Stack, NextID, ValMap);
}
GlobalsGraph->removeTriviallyDeadNodes();