class AttributeImpl;
class AttributeSetImpl;
class AttributeSetNode;
+class Constant;
class LLVMContext;
class Type;
/// \brief Return true if attributes exist
bool hasAttributes() const;
+ /// \brief Return the kind of this attribute.
+ Constant *getAttributeKind() const;
+
+ /// \brief Return the value (if present) of the non-target-specific attribute.
+ ArrayRef<Constant*> getAttributeValues() const;
+
/// \brief Returns the alignment field of an attribute as a byte alignment
/// value.
unsigned getAlignment() const;
return pImpl && pImpl->hasAttributes();
}
+Constant *Attribute::getAttributeKind() const {
+ return pImpl ? pImpl->getAttributeKind() : 0;
+}
+
+ArrayRef<Constant*> Attribute::getAttributeValues() const {
+ return pImpl ? pImpl->getAttributeValues() : ArrayRef<Constant*>();
+}
+
/// This returns the alignment field of an attribute as a byte alignment value.
unsigned Attribute::getAlignment() const {
if (!hasAttribute(Attribute::Alignment))