diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-20 02:41:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-20 02:41:16 +0000 |
commit | e68e808bcdbf7902e6c7d363ef7f3181e1bc435a (patch) | |
tree | 203218a2368a7f6c3a5d3fd8fa3d1187f92a6e4e /llvm/lib/Analysis/DataStructure | |
parent | 1ffdd57e0a10a125ec0a4575655971ab2566dcb3 (diff) | |
download | bcm5719-llvm-e68e808bcdbf7902e6c7d363ef7f3181e1bc435a.tar.gz bcm5719-llvm-e68e808bcdbf7902e6c7d363ef7f3181e1bc435a.zip |
use simpler methods.
llvm-svn: 20706
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp | 7 |
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())); |