From f42ca71f34d335025e94f32609746db962b2daf5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Jun 2003 21:44:31 +0000 Subject: [PATCH] Add accessor llvm-svn: 6755 --- llvm/include/llvm/Support/CallSite.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/Support/CallSite.h b/llvm/include/llvm/Support/CallSite.h index 48045dc3e355..5a5920962eca 100644 --- a/llvm/include/llvm/Support/CallSite.h +++ b/llvm/include/llvm/Support/CallSite.h @@ -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); }