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 | 152289ce167152a3a66791a4754674fec5234595 (patch) | |
tree | f748f1363e92da644f83633df693699479e33000 /llvm/lib/IR/AttributeImpl.h | |
parent | c42bdfcc05d6f8d5fd0fe9b7656427d218bfa8b6 (diff) | |
download | bcm5719-llvm-152289ce167152a3a66791a4754674fec5234595.tar.gz bcm5719-llvm-152289ce167152a3a66791a4754674fec5234595.zip |
In the AttributeSetImpl c'tor, fill in the AttrNodes data structure with the attributes being passed in.
llvm-svn: 173618
Diffstat (limited to 'llvm/lib/IR/AttributeImpl.h')
-rw-r--r-- | llvm/lib/IR/AttributeImpl.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h index d7ebec5daaa..b4c788fa9d4 100644 --- a/llvm/lib/IR/AttributeImpl.h +++ b/llvm/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; } |