mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Oops, make these public.
llvm-svn: 101280
This commit is contained in:
parent
eeaee6bbe3
commit
94f168ddbe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user