diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-09-18 11:48:36 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-09-18 11:48:36 +0000 |
commit | c44201c91e2ede0564d65401d79fde8986da5339 (patch) | |
tree | 329b93ace92292a6559326105f040c6a1b4cb5ac | |
parent | 361de9870a2a5813a05b83e8fd6e6b1bb467fb26 (diff) | |
download | bcm5719-llvm-c44201c91e2ede0564d65401d79fde8986da5339.tar.gz bcm5719-llvm-c44201c91e2ede0564d65401d79fde8986da5339.zip |
remove CallSite::get; it is still present (as protected) in the baseclass, use one of the constructors intead
llvm-svn: 114275
-rw-r--r-- | llvm/include/llvm/Support/CallSite.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/llvm/include/llvm/Support/CallSite.h b/llvm/include/llvm/Support/CallSite.h index 9b6a4098b61..571a04924d1 100644 --- a/llvm/include/llvm/Support/CallSite.h +++ b/llvm/include/llvm/Support/CallSite.h @@ -57,7 +57,7 @@ public: *this = get(II); assert(I.getPointer() && "Not a call?"); } - +protected: /// CallSiteBase::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 CallSiteBase object for something @@ -72,7 +72,7 @@ public: } return CallSiteBase(); } - +public: /// isCall - true if a CallInst is enclosed. /// Note that !isCall() does not mean it is an InvokeInst enclosed, /// it also could signify a NULL Instruction pointer. @@ -282,16 +282,6 @@ public: 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 - /// NOT a call site. - /// - static CallSite get(Value *V) { - return Base::get(V); - } - bool operator<(const CallSite &CS) const { return getInstruction() < CS.getInstruction(); } |