summaryrefslogtreecommitdiff
path: root/include/llvm/IR/Attributes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-27 22:46:17 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-27 22:46:17 +0000
commit2d5be6c313c0f9e23e56620fa8f8ae8d9b539bf0 (patch)
treecb47d9a40ecb7b8461000a3b8af663efc340be5c /include/llvm/IR/Attributes.h
parentc08a5ef6581f2c7550e92d31f63cd65ec29c39e0 (diff)
downloadllvm-2d5be6c313c0f9e23e56620fa8f8ae8d9b539bf0.tar.gz
llvm-2d5be6c313c0f9e23e56620fa8f8ae8d9b539bf0.tar.bz2
llvm-2d5be6c313c0f9e23e56620fa8f8ae8d9b539bf0.tar.xz
Don't erase these methods. They're used during testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/Attributes.h')
-rw-r--r--include/llvm/IR/Attributes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 4ee5814a9c..5eca5d6d08 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -134,6 +134,9 @@ public:
bool operator==(AttrKind K) const;
bool operator!=(AttrKind K) const;
+ bool operator==(Attribute A) const { return pImpl == A.pImpl; }
+ bool operator!=(Attribute A) const { return pImpl != A.pImpl; }
+
/// \brief Less-than operator. Useful for sorting the attributes list.
bool operator<(Attribute A) const;