From 42fd16931099f528228f020596f7fb5ef5ea8b7f Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sun, 20 Oct 2002 18:07:37 +0000 Subject: Added a first-class representation for each call site that can be used in the DS graphs. Essentially, what was vector before is now a DSCallSite with the same vector, plus pointers to the CallInst and the caller Function. The special-purpose class BUDataStructure::CallSite is no longer needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4228 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/Local.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Analysis/DataStructure/Local.cpp') diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index b27652379e..15b3a96b87 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -61,12 +61,12 @@ namespace { vector &Nodes; DSNodeHandle &RetNode; // Node that gets returned... map &ValueMap; - vector > &FunctionCalls; + vector &FunctionCalls; public: GraphBuilder(DSGraph &g, vector &nodes, DSNodeHandle &retNode, map &vm, - vector > &fc) + vector &fc) : G(g), Nodes(nodes), RetNode(retNode), ValueMap(vm), FunctionCalls(fc) { // Create scalar nodes for all pointer arguments... @@ -356,8 +356,8 @@ void GraphBuilder::visitReturnInst(ReturnInst &RI) { void GraphBuilder::visitCallInst(CallInst &CI) { // Add a new function call entry... - FunctionCalls.push_back(vector()); - vector &Args = FunctionCalls.back(); + FunctionCalls.push_back(DSCallSite(G.getFunction(), CI)); + DSCallSite &Args = FunctionCalls.back(); // Set up the return value... if (isPointerType(CI.getType())) -- cgit v1.2.3