[llvm-commits] [llvm] r49616 - /llvm/trunk/include/llvm/Support/CallSite.h
Chris Lattner
sabre at nondot.org
Sun Apr 13 12:40:26 PDT 2008
Author: lattner
Date: Sun Apr 13 14:40:26 2008
New Revision: 49616
URL: http://llvm.org/viewvc/llvm-project?rev=49616&view=rev
Log:
Add support for equality comparison of CallSite's.
Modified:
llvm/trunk/include/llvm/Support/CallSite.h
Modified: llvm/trunk/include/llvm/Support/CallSite.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CallSite.h?rev=49616&r1=49615&r2=49616&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CallSite.h (original)
+++ llvm/trunk/include/llvm/Support/CallSite.h Sun Apr 13 14:40:26 2008
@@ -39,6 +39,9 @@
CallSite(const CallSite &CS) : I(CS.I) {}
CallSite &operator=(const CallSite &CS) { I = CS.I; return *this; }
+ bool operator==(const CallSite &CS) const { return I == CS.I; }
+ bool operator!=(const CallSite &CS) const { return I != CS.I; }
+
/// CallSite::get - This static method is sort of like a constructor. It will
/// create an appropriate call site for a Call or Invoke instruction, but it
/// can also create a null initialized CallSite object for something which is
More information about the llvm-commits
mailing list