mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Fix IPModRef to use new DS interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
25f6f373b8
commit
d321593330
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user