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 | 1c7cc8ae90b05234329671db09f52f71b3e7dfa9 (patch) | |
| tree | 93a04994c9e507f8c022a81d0771b0c2862a8538 /llvm/include | |
| parent | 1a0cf805336fe4e0736d787bf522ed172e2d71e3 (diff) | |
| download | bcm5719-llvm-1c7cc8ae90b05234329671db09f52f71b3e7dfa9.tar.gz bcm5719-llvm-1c7cc8ae90b05234329671db09f52f71b3e7dfa9.zip | |
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).
llvm-svn: 174110
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/IR/Attributes.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h index 3950d932201..d5da1c0a2e9 100644 --- a/llvm/include/llvm/IR/Attributes.h +++ b/llvm/include/llvm/IR/Attributes.h @@ -105,8 +105,6 @@ public: private: AttributeImpl *pImpl; Attribute(AttributeImpl *A) : pImpl(A) {} - - static Attribute get(LLVMContext &Context, AttrBuilder &B); public: Attribute() : pImpl(0) {} @@ -115,7 +113,8 @@ public: //===--------------------------------------------------------------------===// /// \brief Return a uniquified Attribute object. - static Attribute get(LLVMContext &Context, AttrKind Kind); + static Attribute get(LLVMContext &Context, AttrKind Kind, Constant *Val = 0); + static Attribute get(LLVMContext &Context, Constant *Kind, Constant *Val = 0); /// \brief Return a uniquified Attribute object that has the specific /// alignment set. |

