1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Add getCaller() method.

llvm-svn: 13650
This commit is contained in:
Vikram S. Adve 2004-05-23 08:02:45 +00:00
parent cf685da276
commit f4fed4aaa2

View File

@ -22,6 +22,7 @@
#define LLVM_SUPPORT_CALLSITE_H
#include "llvm/Instruction.h"
#include "llvm/BasicBlock.h"
namespace llvm {
@ -60,6 +61,10 @@ public:
///
Instruction *getInstruction() const { return I; }
/// getCaller - Return the caller function for this call site
///
Function *getCaller() const { return I->getParent()->getParent(); }
/// getCalledValue - Return the pointer to function that is being called...
///
Value *getCalledValue() const {