Add accessor

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6755 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-17 21:44:31 +00:00
parent fac0ecabf1
commit 95ab3d4bc4

View File

@ -22,6 +22,9 @@ public:
CallSite(const CallSite &CS) : I(CS.I) {} CallSite(const CallSite &CS) : I(CS.I) {}
CallSite &operator=(const CallSite &CS) { I = CS.I; return *this; } CallSite &operator=(const CallSite &CS) { I = CS.I; return *this; }
/// getInstruction - Return the instruction this call site corresponds to
Instruction *getInstruction() const { return I; }
/// getCalledValue - Return the pointer to function that is being called... /// getCalledValue - Return the pointer to function that is being called...
/// ///
Value *getCalledValue() const { return I->getOperand(0); } Value *getCalledValue() const { return I->getOperand(0); }