From 169d5270751597aed4095ead00401a3374906147 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 31 Jan 2013 23:16:25 +0000 Subject: 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 --- lib/IR/AttributeImpl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/IR/AttributeImpl.h') 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 Vals) + : Context(C), Kind(Kind), Vals(Vals.begin(), Vals.end()) {} explicit AttributeImpl(LLVMContext &C, Attribute::AttrKind data); AttributeImpl(LLVMContext &C, Attribute::AttrKind data, ArrayRef values); -- cgit v1.2.3