diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-06 01:33:42 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-06 01:33:42 +0000 |
commit | c342d9d345acdbd95577c7c6e9ce7d3a1bdb57bf (patch) | |
tree | 97747a4aa454a6b592ccdfc643cacbd648ae2757 /include | |
parent | 85df6b43403d3ebf5d80023a85699c6fb254941a (diff) | |
download | external_llvm-c342d9d345acdbd95577c7c6e9ce7d3a1bdb57bf.zip external_llvm-c342d9d345acdbd95577c7c6e9ce7d3a1bdb57bf.tar.gz external_llvm-c342d9d345acdbd95577c7c6e9ce7d3a1bdb57bf.tar.bz2 |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index d0fe2e1..e73be5d 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; |