llvm.org GIT mirror llvm / f99b286
Add support for equality comparison of CallSite's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49616 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3838 CallSite(const CallSite &CS) : I(CS.I) {}
3939 CallSite &operator=(const CallSite &CS) { I = CS.I; return *this; }
4040
41 bool operator==(const CallSite &CS) const { return I == CS.I; }
42 bool operator!=(const CallSite &CS) const { return I != CS.I; }
43
4144 /// CallSite::get - This static method is sort of like a constructor. It will
4245 /// create an appropriate call site for a Call or Invoke instruction, but it
4346 /// can also create a null initialized CallSite object for something which is