From: Bill Wendling Date: Sun, 27 Jan 2013 21:38:03 +0000 (+0000) Subject: Privitize some the copy c'tor and assignment operator of uniquified objects. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1cc0d5a4311c2d4bc01051561549390307b789a1;p=oota-llvm.git Privitize some the copy c'tor and assignment operator of uniquified objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173632 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h index c56536417cb..b4fb0c0aa65 100644 --- a/lib/IR/AttributeImpl.h +++ b/lib/IR/AttributeImpl.h @@ -32,6 +32,10 @@ class AttributeImpl : public FoldingSetNode { LLVMContext &Context; Constant *Data; SmallVector Vals; + + // AttributesImpl is uniqued, these should not be publicly available. + void operator=(const AttributeImpl &) LLVM_DELETED_FUNCTION; + AttributeImpl(const AttributeImpl &) LLVM_DELETED_FUNCTION; public: explicit AttributeImpl(LLVMContext &C, uint64_t data); explicit AttributeImpl(LLVMContext &C, Attribute::AttrKind data); @@ -78,6 +82,10 @@ class AttributeSetNode : public FoldingSetNode { AttributeSetNode(ArrayRef Attrs) : AttrList(Attrs.begin(), Attrs.end()) {} + + // AttributesSetNode is uniqued, these should not be publicly available. + void operator=(const AttributeSetNode &) LLVM_DELETED_FUNCTION; + AttributeSetNode(const AttributeSetNode &) LLVM_DELETED_FUNCTION; public: static AttributeSetNode *get(LLVMContext &C, ArrayRef Attrs);