Add accessor

llvm-svn: 6755
This commit is contained in:
Chris Lattner 2003-06-17 21:44:31 +00:00
parent 947b0daccd
commit f42ca71f34
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ public:
CallSite(const CallSite &CS) : I(CS.I) {}
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...
///
Value *getCalledValue() const { return I->getOperand(0); }