mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Add getTreeFactory() to ImmutableSet to allow construction of ImmutableSetRef from an ImmutableSet object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45b73e2f3f
commit
b3e3b006bd
@ -117,6 +117,10 @@ public:
|
|||||||
return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T);
|
return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typename TreeTy::Factory *getTreeFactory() const {
|
||||||
|
return const_cast<typename TreeTy::Factory *>(&F);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Factory(const Factory& RHS); // DO NOT IMPLEMENT
|
Factory(const Factory& RHS); // DO NOT IMPLEMENT
|
||||||
void operator=(const Factory& RHS); // DO NOT IMPLEMENT
|
void operator=(const Factory& RHS); // DO NOT IMPLEMENT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user