[llvm-commits] [llvm] r173636 - Don't erase these methods. They're used during testing.
Bill Wendling
isanbard at gmail.com
Sun Jan 27 14:46:18 PST 2013
Author: void
Date: Sun Jan 27 16:46:17 2013
New Revision: 173636
URL: http://llvm.org/viewvc/llvm-project?rev=173636&view=rev
Log:
Don't erase these methods. They're used during testing.
Modified:
llvm/trunk/include/llvm/IR/Attributes.h
Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=173636&r1=173635&r2=173636&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Sun Jan 27 16:46:17 2013
@@ -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;
More information about the llvm-commits
mailing list