[llvm-commits] CVS: llvm/include/llvm/Support/CallSite.h

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 17 16:46:02 PDT 2003


Changes in directory llvm/include/llvm/Support:

CallSite.h updated: 1.2 -> 1.3

---
Log message:

Add accessor


---
Diffs of the changes:

Index: llvm/include/llvm/Support/CallSite.h
diff -u llvm/include/llvm/Support/CallSite.h:1.2 llvm/include/llvm/Support/CallSite.h:1.3
--- llvm/include/llvm/Support/CallSite.h:1.2	Tue Jun 17 14:50:28 2003
+++ llvm/include/llvm/Support/CallSite.h	Tue Jun 17 16:44:31 2003
@@ -22,6 +22,9 @@
   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); }





More information about the llvm-commits mailing list