Don't erase these methods. They're used during testing.
authorBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 22:46:17 +0000 (22:46 +0000)
committerBill 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

index 4ee5814a9cc7261a6239a36a813fe01b7126d5e3..5eca5d6d087cd3a293bbe68febf878127bda19d8 100644 (file)
@@ -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;