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 | c269c5269a3dd37581286cd5518740ea935e25ed (patch) | |
tree | 1fd2cad9c446771c761fc491d99eab38368128a0 /lib/Analysis/DataStructure | |
parent | 73a38a9071332034349d5cb94ebc2ecae28e0e28 (diff) |
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
Diffstat (limited to 'lib/Analysis/DataStructure')
-rw-r--r-- | lib/Analysis/DataStructure/CompleteBottomUp.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/CompleteBottomUp.cpp b/lib/Analysis/DataStructure/CompleteBottomUp.cpp index 1fc4197a09..452f0338cb 100644 --- a/lib/Analysis/DataStructure/CompleteBottomUp.cpp +++ b/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(); |