[llvm-commits] CVS: llvm/lib/Analysis/IPA/IPModRef.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 8 13:14:01 PST 2002
Changes in directory llvm/lib/Analysis/IPA:
IPModRef.cpp updated: 1.7 -> 1.8
---
Log message:
Fix IPModRef to use new DS interface
---
Diffs of the changes:
Index: llvm/lib/Analysis/IPA/IPModRef.cpp
diff -u llvm/lib/Analysis/IPA/IPModRef.cpp:1.7 llvm/lib/Analysis/IPA/IPModRef.cpp:1.8
--- llvm/lib/Analysis/IPA/IPModRef.cpp:1.7 Thu Nov 7 01:12:23 2002
+++ llvm/lib/Analysis/IPA/IPModRef.cpp Fri Nov 8 13:13:14 2002
@@ -117,14 +117,7 @@
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));
More information about the llvm-commits
mailing list