mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Add getCaller() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13650 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -22,6 +22,7 @@
|
|||||||
#define LLVM_SUPPORT_CALLSITE_H
|
#define LLVM_SUPPORT_CALLSITE_H
|
||||||
|
|
||||||
#include "llvm/Instruction.h"
|
#include "llvm/Instruction.h"
|
||||||
|
#include "llvm/BasicBlock.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
@ -60,6 +61,10 @@ public:
|
|||||||
///
|
///
|
||||||
Instruction *getInstruction() const { return I; }
|
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...
|
/// getCalledValue - Return the pointer to function that is being called...
|
||||||
///
|
///
|
||||||
Value *getCalledValue() const {
|
Value *getCalledValue() const {
|
||||||
|
Reference in New Issue
Block a user