git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225683
91177308-0d34-0410-b5e6-
96231b3b80d8
~MDNode() {}
void dropAllReferences();
- void storeDistinctInContext();
static MDNode *getMDNode(LLVMContext &C, ArrayRef<Metadata *> MDs,
bool Insert = true);
bool AllowRAUW);
~UniquableMDNode();
+ void storeDistinctInContext();
+
public:
static bool classof(const Metadata *MD) {
return MD->getMetadataID() == MDTupleKind;
delete cast<MDNodeFwdDecl>(N);
}
-void MDNode::storeDistinctInContext() {
+void UniquableMDNode::storeDistinctInContext() {
assert(!IsDistinctInContext && "Expected newly distinct metadata");
IsDistinctInContext = true;
auto *T = cast<MDTuple>(this);