mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
- Make DSCallSite not inherit from std::vector. Renamed methods slightly.
Make copy ctor have two versions to avoid dealing with conditional template argument. DSCallSite ctor now takes all arguments instead of taking one and being populated later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -60,12 +60,12 @@ void TDDataStructures::ResolveCallSite(DSGraph &Graph,
|
||||
// TD ...Merge the formal arg scalar with the actual arg node
|
||||
DSNodeHandle &NodeForFormal = Graph.getNodeForValue(AI);
|
||||
if (NodeForFormal.getNode())
|
||||
NodeForFormal.mergeWith(CallSite.getPtrArgNode(i));
|
||||
NodeForFormal.mergeWith(CallSite.getPtrArg(i));
|
||||
}
|
||||
|
||||
// Merge returned node in the caller with the "return" node in callee
|
||||
if (CallSite.getReturnValueNode().getNode() && Graph.getRetNode().getNode())
|
||||
Graph.getRetNode().mergeWith(CallSite.getReturnValueNode());
|
||||
if (CallSite.getRetVal().getNode() && Graph.getRetNode().getNode())
|
||||
Graph.getRetNode().mergeWith(CallSite.getRetVal());
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user