diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-27 21:38:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-27 21:38:03 +0000 |
commit | 97b4f70b2e1f5b1cb9f85c6765192a67b12b983a (patch) | |
tree | 6e43a7c20156bb1ca7820e7d47e8b793ecfc0017 /llvm/lib/IR/AttributeImpl.h | |
parent | 5c8b2dff4d56b2a05ec5d424b5025cd5f9cf4657 (diff) | |
download | bcm5719-llvm-97b4f70b2e1f5b1cb9f85c6765192a67b12b983a.tar.gz bcm5719-llvm-97b4f70b2e1f5b1cb9f85c6765192a67b12b983a.zip |
Privitize some the copy c'tor and assignment operator of uniquified objects.
llvm-svn: 173632
Diffstat (limited to 'llvm/lib/IR/AttributeImpl.h')
-rw-r--r-- | llvm/lib/IR/AttributeImpl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h index c56536417cb..b4fb0c0aa65 100644 --- a/llvm/lib/IR/AttributeImpl.h +++ b/llvm/lib/IR/AttributeImpl.h @@ -32,6 +32,10 @@ class AttributeImpl : public FoldingSetNode { LLVMContext &Context; Constant *Data; SmallVector<Constant*, 0> 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<Attribute> 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<Attribute> Attrs); |