diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-06-16 14:43:36 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-06-16 14:43:36 +0000 |
commit | 06868420379daa1cb641e7dfcccbee9b4ef3927a (patch) | |
tree | 9233aba9b71ca40324a2d2eeee286e6724f03b76 /llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp | |
parent | fbee2e56cf3ef21e9b6bacbda20e22364681a70e (diff) | |
download | bcm5719-llvm-06868420379daa1cb641e7dfcccbee9b4ef3927a.tar.gz bcm5719-llvm-06868420379daa1cb641e7dfcccbee9b4ef3927a.zip |
Add a error message to cbu to match bu
llvm-svn: 28819
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp b/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp index 1fc4197a097..452f0338cb0 100644 --- a/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp +++ b/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp @@ -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(); |