diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/IR/Attributes.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 83588fd..e854da7 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -107,9 +107,6 @@ private: Attribute(AttributeImpl *A) : pImpl(A) {} static Attribute get(LLVMContext &Context, AttrBuilder &B); - - /// \brief Return true if the attribute is present. - bool hasAttribute(AttrKind Val) const; public: Attribute() : pImpl(0) {} @@ -129,6 +126,12 @@ public: // Attribute Accessors //===--------------------------------------------------------------------===// + /// \brief Return true if the attribute is present. + bool hasAttribute(AttrKind Val) const; + + /// \brief Return true if attributes exist + bool hasAttributes() const; + /// \brief Return the kind of this attribute. Constant *getAttributeKind() const; |