diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-17 21:44:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-17 21:44:31 +0000 |
commit | 95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6 (patch) | |
tree | 6772703b4b524b67ef0b50f261e27e33b02bfd29 /include | |
parent | fac0ecabf14d6c13ad3d204ce97e14a8be392849 (diff) | |
download | external_llvm-95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6.zip external_llvm-95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6.tar.gz external_llvm-95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6.tar.bz2 |
Add accessor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/CallSite.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 48045dc..5a59209 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); } |