diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-09 09:11:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-09 09:11:20 +0000 |
commit | 2e879bcd52583335c753c005d203bf2ffe8b67b5 (patch) | |
tree | 519df78db10304e80747bbaecab158bc53664152 /include/llvm/AttributesImpl.h | |
parent | e97a3a4b4fccbe6283b616af93ab0117d3a7fee9 (diff) |
Use the enum value of the attributes when adding them to the attributes builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/AttributesImpl.h')
-rw-r--r-- | include/llvm/AttributesImpl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/AttributesImpl.h b/include/llvm/AttributesImpl.h index 4f68cb4c3e..eea11a7011 100644 --- a/include/llvm/AttributesImpl.h +++ b/include/llvm/AttributesImpl.h @@ -25,7 +25,6 @@ class AttributesImpl : public FoldingSetNode { friend class Attributes; uint64_t Bits; // FIXME: We will be expanding this. - uint64_t getAttrMask(uint64_t Val) const; public: AttributesImpl(uint64_t bits) : Bits(bits) {} @@ -39,6 +38,8 @@ public: bool isEmptyOrSingleton() const; + static uint64_t getAttrMask(uint64_t Val); + void Profile(FoldingSetNodeID &ID) const { Profile(ID, Bits); } |