projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c08a5ef
)
Don't erase these methods. They're used during testing.
author
Bill Wendling
<isanbard@gmail.com>
Sun, 27 Jan 2013 22:46:17 +0000
(22:46 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Sun, 27 Jan 2013 22:46:17 +0000
(22:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173636
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/IR/Attributes.h
patch
|
blob
|
history
diff --git
a/include/llvm/IR/Attributes.h
b/include/llvm/IR/Attributes.h
index 4ee5814a9cc7261a6239a36a813fe01b7126d5e3..5eca5d6d087cd3a293bbe68febf878127bda19d8 100644
(file)
--- 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;