summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-14 20:31:28 +0000
committerDan Gohman <gohman@apple.com>2010-04-14 20:31:28 +0000
commitce931088f36b75dc5073013d2928aebd6397567a (patch)
tree444fa13fd0572a2880e0bb9ae78f44b8ba82399a /include
parentd9587fddd65c874ecc70771dc76119ceb4b1500c (diff)
downloadllvm-ce931088f36b75dc5073013d2928aebd6397567a.tar.gz
llvm-ce931088f36b75dc5073013d2928aebd6397567a.tar.bz2
llvm-ce931088f36b75dc5073013d2928aebd6397567a.tar.xz
Oops, make these public.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/CallSite.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h
index 83a472e1b0..f3bfb2d414 100644
--- a/include/llvm/Support/CallSite.h
+++ b/include/llvm/Support/CallSite.h
@@ -150,6 +150,14 @@ public:
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 @@ private:
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