Make CallSite's default constructable, copyable, and assignable (explicitly)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-17 19:50:28 +00:00
parent f25b7729c1
commit ad110d2bb4

View File

@ -16,8 +16,11 @@ class InvokeInst;
class CallSite {
Instruction *I;
public:
CallSite() : I(0) {}
CallSite(CallInst *CI) : I((Instruction*)CI) {}
CallSite(InvokeInst *II) : I((Instruction*)II) {}
CallSite(const CallSite &CS) : I(CS.I) {}
CallSite &operator=(const CallSite &CS) { I = CS.I; return *this; }
/// getCalledValue - Return the pointer to function that is being called...
///