summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-06-16 14:43:36 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-06-16 14:43:36 +0000
commit06868420379daa1cb641e7dfcccbee9b4ef3927a (patch)
tree9233aba9b71ca40324a2d2eeee286e6724f03b76 /llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp
parentfbee2e56cf3ef21e9b6bacbda20e22364681a70e (diff)
downloadbcm5719-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.cpp8
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();
OpenPOWER on IntegriCloud