diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-31 01:51:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-31 01:51:27 +0000 |
commit | 8ed701da9aa388c078cc6aecac2fe355974c90d2 (patch) | |
tree | 04f5831a1b14888c576dae3607f0c2d996e18bdb /include | |
parent | 11486ffd5ad0d51d9ba338b9c0596d2164e41711 (diff) | |
download | llvm-8ed701da9aa388c078cc6aecac2fe355974c90d2.tar.gz llvm-8ed701da9aa388c078cc6aecac2fe355974c90d2.tar.bz2 llvm-8ed701da9aa388c078cc6aecac2fe355974c90d2.tar.xz |
Make the AttrBuilder creation method of Attribute private so that people won't use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Attributes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 29eaec1d0d..e854da7313 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -105,6 +105,8 @@ public: private: AttributeImpl *pImpl; Attribute(AttributeImpl *A) : pImpl(A) {} + + static Attribute get(LLVMContext &Context, AttrBuilder &B); public: Attribute() : pImpl(0) {} @@ -114,7 +116,6 @@ public: /// \brief Return a uniquified Attribute object. static Attribute get(LLVMContext &Context, AttrKind Kind); - static Attribute get(LLVMContext &Context, AttrBuilder &B); /// \brief Return a uniquified Attribute object that has the specific /// alignment set. |