mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Now that the dead ctor is gone, nothing uses the old node mapping exported by
cloneInto: make it an internally used mapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20760 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1168,8 +1168,7 @@ DSGraph::DSGraph(const DSGraph &G, EquivalenceClasses<GlobalValue*> &ECs,
|
||||
unsigned CloneFlags)
|
||||
: GlobalsGraph(0), ScalarMap(ECs), TD(G.TD) {
|
||||
PrintAuxCalls = false;
|
||||
NodeMapTy NodeMap;
|
||||
cloneInto(G, NodeMap, CloneFlags);
|
||||
cloneInto(G, CloneFlags);
|
||||
}
|
||||
|
||||
DSGraph::~DSGraph() {
|
||||
@ -1235,12 +1234,12 @@ DSNode *DSGraph::addObjectToGraph(Value *Ptr, bool UseDeclaredType) {
|
||||
///
|
||||
/// The CloneFlags member controls various aspects of the cloning process.
|
||||
///
|
||||
void DSGraph::cloneInto(const DSGraph &G, NodeMapTy &OldNodeMap,
|
||||
unsigned CloneFlags) {
|
||||
void DSGraph::cloneInto(const DSGraph &G, unsigned CloneFlags) {
|
||||
TIME_REGION(X, "cloneInto");
|
||||
assert(OldNodeMap.empty() && "Returned OldNodeMap should be empty!");
|
||||
assert(&G != this && "Cannot clone graph into itself!");
|
||||
|
||||
NodeMapTy OldNodeMap;
|
||||
|
||||
// Remove alloca or mod/ref bits as specified...
|
||||
unsigned BitsToClear = ((CloneFlags & StripAllocaBit)? DSNode::AllocaNode : 0)
|
||||
| ((CloneFlags & StripModRefBits)? (DSNode::Modified | DSNode::Read) : 0)
|
||||
|
Reference in New Issue
Block a user