[llvm-commits] [llvm] r107766 - /llvm/trunk/include/llvm/Support/CallSite.h
Gabor Greif
ggreif at gmail.com
Wed Jul 7 02:43:45 PDT 2010
Author: ggreif
Date: Wed Jul 7 04:43:45 2010
New Revision: 107766
URL: http://llvm.org/viewvc/llvm-project?rev=107766&view=rev
Log:
conditionalize on CallInst::ArgOffset
Modified:
llvm/trunk/include/llvm/Support/CallSite.h
Modified: llvm/trunk/include/llvm/Support/CallSite.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CallSite.h?rev=107766&r1=107765&r2=107766&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CallSite.h (original)
+++ llvm/trunk/include/llvm/Support/CallSite.h Wed Jul 7 04:43:45 2010
@@ -256,14 +256,14 @@
/// Returns the operand number of the first argument
unsigned getArgumentOffset() const {
if (isCall())
- return 1; // Skip Function (ATM)
+ return CallInst::ArgOffset; // Skip Function (ATM)
else
return 0; // Args are at the front
}
unsigned getArgumentEndOffset() const {
if (isCall())
- return 0; // Unchanged (ATM)
+ return CallInst::ArgOffset ? 0 : 1; // Unchanged (ATM)
else
return 3; // Skip BB, BB, Function
}
More information about the llvm-commits
mailing list