From 2d5be6c313c0f9e23e56620fa8f8ae8d9b539bf0 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 27 Jan 2013 22:46:17 +0000 Subject: [PATCH] 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 --- include/llvm/IR/Attributes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 4ee5814a9cc..5eca5d6d087 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;