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

Brian Gaeke gaeke at cs.uiuc.edu
Wed Nov 5 14:26:01 PST 2003


Changes in directory llvm/include/llvm/Support:

CallSite.h updated: 1.10 -> 1.11

---
Log message:

A few handy methods that seem to mesh well with what CallSite already provides.


---
Diffs of the changes:  (+5 -0)

Index: llvm/include/llvm/Support/CallSite.h
diff -u llvm/include/llvm/Support/CallSite.h:1.10 llvm/include/llvm/Support/CallSite.h:1.11
--- llvm/include/llvm/Support/CallSite.h:1.10	Sun Nov  2 17:04:33 2003
+++ llvm/include/llvm/Support/CallSite.h	Wed Nov  5 14:25:33 2003
@@ -44,6 +44,10 @@
     return CallSite();
   }
 
+  /// getType - Return the type of the instruction that generated this call site
+  ///
+  const Type *getType () const { return I->getType (); }
+
   /// getInstruction - Return the instruction this call site corresponds to
   ///
   Instruction *getInstruction() const { return I; }
@@ -83,6 +87,7 @@
       return I->op_begin()+3; // Skip Function, BB, BB
   }
   arg_iterator arg_end() const { return I->op_end(); }
+  unsigned arg_size() const { return arg_end() - arg_begin(); }
 
   bool operator<(const CallSite &CS) const {
     return getInstruction() < CS.getInstruction();





More information about the llvm-commits mailing list