From: Chris Lattner Date: Tue, 17 Jun 2003 21:44:31 +0000 (+0000) Subject: Add accessor X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6;p=oota-llvm.git Add accessor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6755 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 48045dc3e35..5a5920962ec 100644 --- a/include/llvm/Support/CallSite.h +++ b/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); }