use simpler methods.
authorChris Lattner <sabre@nondot.org>
Sun, 20 Mar 2005 02:41:16 +0000 (02:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 20 Mar 2005 02:41:16 +0000 (02:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20706 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/CompleteBottomUp.cpp

index 16ea4385dbe4af64931b62f79c6321789969be18..0b97995a772fec40f36a748a8cf7de014b2f2e2f 100644 (file)
@@ -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()));