diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-04-13 19:40:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-04-13 19:40:26 +0000 |
| commit | 7f2017de06c4cf480a3136ccda5866a82b180c4b (patch) | |
| tree | 0d7be2cfb28cab204828e0c8658be09078350843 /include/llvm/Support | |
| parent | e34c667fa392fbdb646f72743a414b84c8d1fb1e (diff) | |
| download | external_llvm-7f2017de06c4cf480a3136ccda5866a82b180c4b.zip external_llvm-7f2017de06c4cf480a3136ccda5866a82b180c4b.tar.gz external_llvm-7f2017de06c4cf480a3136ccda5866a82b180c4b.tar.bz2 | |
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
Diffstat (limited to 'include/llvm/Support')
| -rw-r--r-- | include/llvm/Support/CallSite.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 6a6bcf1..f118680 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -39,6 +39,9 @@ public: 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 |
