OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa680ea
)
reformulate CallSiteBase::getCallee to adapt to CallInst::ArgOffset, and make it...
author
Gabor Greif
<ggreif@gmail.com>
Thu, 1 Jul 2010 11:26:05 +0000
(11:26 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Thu, 1 Jul 2010 11:26:05 +0000
(11:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107392
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
0650b61
..
c4d442a
100644
(file)
--- a/
include/llvm/Support/CallSite.h
+++ b/
include/llvm/Support/CallSite.h
@@
-273,7
+273,9
@@
private:
// of the op_*() functions here. See CallSite::getCallee.
//
if (isCall())
- return getInstruction()->op_begin(); // Unchanged (ATM)
+ return CallInst::ArgOffset
+ ? getInstruction()->op_begin() // Unchanged
+ : getInstruction()->op_end() - 1; // Skip Function
else
return getInstruction()->op_end() - 3; // Skip BB, BB, Function
}