Add accessor
authorChris Lattner <sabre@nondot.org>
Tue, 17 Jun 2003 21:44:31 +0000 (21:44 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Jun 2003 21:44:31 +0000 (21:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6755 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CallSite.h

index 48045dc3e3555bbfe709bef7fe72d82cd4cace85..5a5920962ecabf34d3c30f386d496fcb11cc37f9 100644 (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); }