diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-01-17 19:03:45 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-01-17 19:03:45 +0000 |
commit | 7543f7fae3cbd95df084d4da8c545531e7b93163 (patch) | |
tree | 761d1be841faf1e86ed3e930ff19c8603579a9a3 /include/llvm/Support | |
parent | 2d1768ca523dca409bab70ce29955875f58dddb8 (diff) | |
download | external_llvm-7543f7fae3cbd95df084d4da8c545531e7b93163.tar.gz external_llvm-7543f7fae3cbd95df084d4da8c545531e7b93163.tar.bz2 external_llvm-7543f7fae3cbd95df084d4da8c545531e7b93163.zip |
make comparisons a bist faster
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/CallSite.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 16d862fae5..520f8de79f 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -43,11 +43,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 getInstruction() - == CS.getInstruction(); } - bool operator!=(const CallSite &CS) const { return getInstruction() - != CS.getInstruction(); } - + 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 |