summaryrefslogtreecommitdiff
path: root/lib/IR/AttributeImpl.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-13 08:42:21 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-13 08:42:21 +0000
commit0e9d5d059c4aa959e9ef4dff011dbd38d45a1016 (patch)
tree6285ed6170465ecafbd34e65f5a0b075b7dea5a3 /lib/IR/AttributeImpl.h
parent80806961035807d1b9566cdd34233c1b4cf49282 (diff)
downloadllvm-0e9d5d059c4aa959e9ef4dff011dbd38d45a1016.tar.gz
llvm-0e9d5d059c4aa959e9ef4dff011dbd38d45a1016.tar.bz2
llvm-0e9d5d059c4aa959e9ef4dff011dbd38d45a1016.tar.xz
Add some accessor and query methods for retrieving Attribute objects and such.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AttributeImpl.h')
-rw-r--r--lib/IR/AttributeImpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h
index 7bb1fccba0..cb2c55ccbe 100644
--- a/lib/IR/AttributeImpl.h
+++ b/lib/IR/AttributeImpl.h
@@ -170,8 +170,12 @@ public:
static AttributeSetNode *get(LLVMContext &C, ArrayRef<Attribute> Attrs);
bool hasAttribute(Attribute::AttrKind Kind) const;
+ bool hasAttribute(StringRef Kind) const;
bool hasAttributes() const { return !AttrList.empty(); }
+ Attribute getAttribute(Attribute::AttrKind Kind) const;
+ Attribute getAttribute(StringRef Kind) const;
+
unsigned getAlignment() const;
unsigned getStackAlignment() const;
std::string getAsString(bool InAttrGrp) const;