summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-20 02:41:16 +0000
committerChris Lattner <sabre@nondot.org>2005-03-20 02:41:16 +0000
commite68e808bcdbf7902e6c7d363ef7f3181e1bc435a (patch)
tree203218a2368a7f6c3a5d3fd8fa3d1187f92a6e4e /llvm/lib/Analysis
parent1ffdd57e0a10a125ec0a4575655971ab2566dcb3 (diff)
downloadbcm5719-llvm-e68e808bcdbf7902e6c7d363ef7f3181e1bc435a.tar.gz
bcm5719-llvm-e68e808bcdbf7902e6c7d363ef7f3181e1bc435a.zip
use simpler methods.
llvm-svn: 20706
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp b/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp
index 16ea4385dbe..0b97995a772 100644
--- a/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp
+++ b/llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp
@@ -56,11 +56,10 @@ bool CompleteBUDataStructures::runOnModule(Module &M) {
Instruction *TheCall = CSI->getCallSite().getInstruction();
if (CSI->isIndirectCall()) { // indirect call: insert all callees
- const std::vector<GlobalValue*> &Callees =
- CSI->getCalleeNode()->getGlobals();
+ std::vector<Function*> Callees;
+ CSI->getCalleeNode()->addFullFunctionList(Callees);
for (unsigned i = 0, e = Callees.size(); i != e; ++i)
- if (Function *F = dyn_cast<Function>(Callees[i]))
- ActualCallees.insert(std::make_pair(TheCall, F));
+ ActualCallees.insert(std::make_pair(TheCall, Callees[i]));
} else { // direct call: insert the single callee directly
ActualCallees.insert(std::make_pair(TheCall,
CSI->getCalleeFunc()));
OpenPOWER on IntegriCloud