diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-16 05:55:09 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-16 05:55:09 +0000 |
commit | a5c699d5f7de7eb88b7f549539b6550653dea74e (patch) | |
tree | b704c01bad9fc507df5cffc90e358a262c5cc8f8 /include/llvm | |
parent | 46d5dd9b058f31637f2449b2925f13a5707d126d (diff) | |
download | external_llvm-a5c699d5f7de7eb88b7f549539b6550653dea74e.zip external_llvm-a5c699d5f7de7eb88b7f549539b6550653dea74e.tar.gz external_llvm-a5c699d5f7de7eb88b7f549539b6550653dea74e.tar.bz2 |
Have AttrBuilder defriend the Attributes class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Attributes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index aac5d9e..3452775 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -192,7 +192,6 @@ public: /// Builder's value, however, is not. So this can be used as a quick way to test /// for equality, presence of attributes, etc. class AttrBuilder { - friend class Attributes; uint64_t Bits; public: AttrBuilder() : Bits(0) {} @@ -267,6 +266,8 @@ public: .removeAttribute(Attributes::AddressSafety); } + uint64_t Raw() const { return Bits; } + bool operator==(const AttrBuilder &B) { return Bits == B.Bits; } |