projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
052682f
)
Add getCaller() method.
author
Vikram S. Adve
<vadve@cs.uiuc.edu>
Sun, 23 May 2004 08:02:45 +0000
(08:02 +0000)
committer
Vikram S. Adve
<vadve@cs.uiuc.edu>
Sun, 23 May 2004 08:02:45 +0000
(08:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13650
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/CallSite.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/CallSite.h
b/include/llvm/Support/CallSite.h
index 8f7cf1a7868d55348fd29674e00767c8cf0c1bec..009bd6ae1ad23b6bf94465317083045edb9a6d03 100644
(file)
--- a/
include/llvm/Support/CallSite.h
+++ b/
include/llvm/Support/CallSite.h
@@
-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 {