summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-06 01:33:42 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-06 01:33:42 +0000
commitc342d9d345acdbd95577c7c6e9ce7d3a1bdb57bf (patch)
tree97747a4aa454a6b592ccdfc643cacbd648ae2757 /include
parent85df6b43403d3ebf5d80023a85699c6fb254941a (diff)
downloadllvm-c342d9d345acdbd95577c7c6e9ce7d3a1bdb57bf.tar.gz
llvm-c342d9d345acdbd95577c7c6e9ce7d3a1bdb57bf.tar.bz2
llvm-c342d9d345acdbd95577c7c6e9ce7d3a1bdb57bf.tar.xz
Add a 'StringRef' version of hasAttribute.
Fix the 'operator==' and 'hasAttributes' queries to take into account target-dependent attributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Attributes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index d0fe2e15bc..e73be5db22 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -404,6 +404,10 @@ public:
/// \brief Return true if the builder has the specified attribute.
bool contains(Attribute::AttrKind A) const;
+ /// \brief Return true if the builder has the specified target-dependent
+ /// attribute.
+ bool contains(StringRef A) const;
+
/// \brief Return true if the builder has IR-level attributes.
bool hasAttributes() const;