aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/IPA
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-08 19:13:14 +0000
committerChris Lattner <sabre@nondot.org>2002-11-08 19:13:14 +0000
commitd321593330f0e3c9a1cabf688e7e964f7bda09f5 (patch)
tree8878616f83318f8a034a121abe09693e2d9c8e63 /lib/Analysis/IPA
parent25f6f373b88199d861c1c618d3aa8f7b69d1e2ae (diff)
downloadexternal_llvm-d321593330f0e3c9a1cabf688e7e964f7bda09f5.zip
external_llvm-d321593330f0e3c9a1cabf688e7e964f7bda09f5.tar.gz
external_llvm-d321593330f0e3c9a1cabf688e7e964f7bda09f5.tar.bz2
Fix IPModRef to use new DS interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r--lib/Analysis/IPA/IPModRef.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Analysis/IPA/IPModRef.cpp b/lib/Analysis/IPA/IPModRef.cpp
index 3631514..3832cb3 100644
--- a/lib/Analysis/IPA/IPModRef.cpp
+++ b/lib/Analysis/IPA/IPModRef.cpp
@@ -117,14 +117,7 @@ DSGraph *FunctionModRefInfo::ResolveCallSiteModRefInfo(CallInst &CI,
std::map<const DSNode*, DSNodeHandle> &NodeMap) {
// Step #1: Clone the top-down graph...
- std::map<const DSNode*, DSNode*> RawNodeMap;
- DSGraph *Result = new DSGraph(funcTDGraph, RawNodeMap);
-
- // Convert the NodeMap from a map to DSNode* to be a map to DSNodeHandle's
- NodeMap.insert(RawNodeMap.begin(), RawNodeMap.end());
-
- // We are now done with the old map... so free it's memory...
- RawNodeMap.clear();
+ DSGraph *Result = new DSGraph(funcTDGraph, NodeMap);
// Step #2: Clear Mod/Ref information...
Result->maskNodeTypes(~(DSNode::Modified | DSNode::Read));