diff options
Diffstat (limited to 'include')
-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 aac5d9ef4a..345277560f 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; } |