summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-17 21:44:31 +0000
committerChris Lattner <sabre@nondot.org>2003-06-17 21:44:31 +0000
commit95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6 (patch)
tree6772703b4b524b67ef0b50f261e27e33b02bfd29
parentfac0ecabf14d6c13ad3d204ce97e14a8be392849 (diff)
downloadllvm-95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6.tar.gz
llvm-95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6.tar.bz2
llvm-95ab3d4bc492707bdb6a3e60cffabaa875c1f5e6.tar.xz
Add accessor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6755 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/CallSite.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h
index 48045dc3e3..5a5920962e 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); }