diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-27 12:50:02 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-27 12:50:02 +0000 |
commit | 6a325cc46db9cb0c631ac832474e5df039d04b19 (patch) | |
tree | c25737e3c3773a3fd3c05edfeb99fa17eb38ea35 /lib/IR/AttributeImpl.h | |
parent | 2044adfb2ac7435ed3a1a66d48eb49887769745d (diff) | |
download | llvm-6a325cc46db9cb0c631ac832474e5df039d04b19.tar.gz llvm-6a325cc46db9cb0c631ac832474e5df039d04b19.tar.bz2 llvm-6a325cc46db9cb0c631ac832474e5df039d04b19.tar.xz |
In the AttributeSetImpl c'tor, fill in the AttrNodes data structure with the attributes being passed in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AttributeImpl.h')
-rw-r--r-- | lib/IR/AttributeImpl.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h index d7ebec5daa..b4c788fa9d 100644 --- a/lib/IR/AttributeImpl.h +++ b/lib/IR/AttributeImpl.h @@ -115,11 +115,9 @@ class AttributeSetImpl : public FoldingSetNode { void operator=(const AttributeSetImpl &) LLVM_DELETED_FUNCTION; AttributeSetImpl(const AttributeSetImpl &) LLVM_DELETED_FUNCTION; public: - AttributeSetImpl(LLVMContext &C, ArrayRef<AttributeWithIndex> attrs) - : Context(C), AttrList(attrs.begin(), attrs.end()) {} + AttributeSetImpl(LLVMContext &C, ArrayRef<AttributeWithIndex> attrs); AttributeSetImpl(LLVMContext &C, - ArrayRef<std::pair<uint64_t, AttributeSetNode*> > attrs) - : Context(C), AttrNodes(attrs.begin(), attrs.end()) {} + ArrayRef<std::pair<uint64_t, AttributeSetNode*> > attrs); LLVMContext &getContext() { return Context; } ArrayRef<AttributeWithIndex> getAttributes() const { return AttrList; } |