summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-16 05:55:09 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-16 05:55:09 +0000
commita5c699d5f7de7eb88b7f549539b6550653dea74e (patch)
treeb704c01bad9fc507df5cffc90e358a262c5cc8f8 /include
parent46d5dd9b058f31637f2449b2925f13a5707d126d (diff)
downloadllvm-a5c699d5f7de7eb88b7f549539b6550653dea74e.tar.gz
llvm-a5c699d5f7de7eb88b7f549539b6550653dea74e.tar.bz2
llvm-a5c699d5f7de7eb88b7f549539b6550653dea74e.tar.xz
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')
-rw-r--r--include/llvm/Attributes.h3
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;
}