mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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:
parent
73a38a9071
commit
c269c5269a
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user