diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-31 23:16:25 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-31 23:16:25 +0000 |
commit | 169d5270751597aed4095ead00401a3374906147 (patch) | |
tree | 7eca2760854ffdd8e7f398981cb756e2a3908b10 /lib/IR/AttributeImpl.h | |
parent | 68cbd91f97b4f963971c941405227fe943e376ac (diff) | |
download | llvm-169d5270751597aed4095ead00401a3374906147.tar.gz llvm-169d5270751597aed4095ead00401a3374906147.tar.bz2 llvm-169d5270751597aed4095ead00401a3374906147.tar.xz |
Remove the AttrBuilder form of the Attribute::get creators.
The AttrBuilder is for building a collection of attributes. The Attribute object
holds only one attribute. So it's not really useful for the Attribute object to
have a creator which takes an AttrBuilder.
This has two fallouts:
1. The AttrBuilder no longer holds its internal attributes in a bit-mask form.
2. The attributes are now ordered alphabetically (hence why the tests have changed).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AttributeImpl.h')
-rw-r--r-- | lib/IR/AttributeImpl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h index 442860d31b..e9525785a2 100644 --- a/lib/IR/AttributeImpl.h +++ b/lib/IR/AttributeImpl.h @@ -40,6 +40,8 @@ class AttributeImpl : public FoldingSetNode { public: AttributeImpl(LLVMContext &C, Constant *Kind) : Context(C), Kind(Kind) {} + AttributeImpl(LLVMContext &C, Constant *Kind, ArrayRef<Constant*> Vals) + : Context(C), Kind(Kind), Vals(Vals.begin(), Vals.end()) {} explicit AttributeImpl(LLVMContext &C, Attribute::AttrKind data); AttributeImpl(LLVMContext &C, Attribute::AttrKind data, ArrayRef<Constant*> values); |