[llvm-commits] [llvm] r101280 - /llvm/trunk/include/llvm/Support/CallSite.h

Dan Gohman gohman at apple.com
Wed Apr 14 13:31:28 PDT 2010


Author: djg
Date: Wed Apr 14 15:31:28 2010
New Revision: 101280

URL: http://llvm.org/viewvc/llvm-project?rev=101280&view=rev
Log:
Oops, make these public.

Modified:
    llvm/trunk/include/llvm/Support/CallSite.h

Modified: llvm/trunk/include/llvm/Support/CallSite.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CallSite.h?rev=101280&r1=101279&r2=101280&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CallSite.h (original)
+++ llvm/trunk/include/llvm/Support/CallSite.h Wed Apr 14 15:31:28 2010
@@ -150,6 +150,14 @@
   bool arg_empty() const { return arg_end() == arg_begin(); }
   unsigned arg_size() const { return unsigned(arg_end() - arg_begin()); }
   
+  /// getType - Return the type of the instruction that generated this call site
+  ///
+  const Type *getType() const { return (*this)->getType(); }
+
+  /// getCaller - Return the caller function for this call site
+  ///
+  Function *getCaller() const { return (*this)->getParent()->getParent(); }
+
 private:
   /// Returns the operand number of the first argument
   unsigned getArgumentOffset() const {
@@ -175,14 +183,6 @@
     else
       return getInstruction()->op_end() - 3; // Skip BB, BB, Function
   }
-
-  /// getType - Return the type of the instruction that generated this call site
-  ///
-  const Type *getType() const { return (*this)->getType(); }
-
-  /// getCaller - Return the caller function for this call site
-  ///
-  Function *getCaller() const { return (*this)->getParent()->getParent(); }
 };
 
 /// ImmutableCallSite - establish a view to a call site for examination





More information about the llvm-commits mailing list