mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-25 15:41:05 +00:00
IR: Push storeDistinctInContext() down to UniquableMDNode, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae9e15f914
commit
0196561697
@ -603,7 +603,6 @@ protected:
|
||||
~MDNode() {}
|
||||
|
||||
void dropAllReferences();
|
||||
void storeDistinctInContext();
|
||||
|
||||
static MDNode *getMDNode(LLVMContext &C, ArrayRef<Metadata *> MDs,
|
||||
bool Insert = true);
|
||||
@ -735,6 +734,8 @@ protected:
|
||||
bool AllowRAUW);
|
||||
~UniquableMDNode();
|
||||
|
||||
void storeDistinctInContext();
|
||||
|
||||
public:
|
||||
static bool classof(const Metadata *MD) {
|
||||
return MD->getMetadataID() == MDTupleKind;
|
||||
|
@ -616,7 +616,7 @@ void MDNode::deleteTemporary(MDNode *N) {
|
||||
delete cast<MDNodeFwdDecl>(N);
|
||||
}
|
||||
|
||||
void MDNode::storeDistinctInContext() {
|
||||
void UniquableMDNode::storeDistinctInContext() {
|
||||
assert(!IsDistinctInContext && "Expected newly distinct metadata");
|
||||
IsDistinctInContext = true;
|
||||
auto *T = cast<MDTuple>(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user