[llvm-branch-commits] [llvm-branch] r100715 - /llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h
Gabor Greif
ggreif at gmail.com
Wed Apr 7 16:07:09 PDT 2010
Author: ggreif
Date: Wed Apr 7 18:07:09 2010
New Revision: 100715
URL: http://llvm.org/viewvc/llvm-project?rev=100715&view=rev
Log:
refactor
Modified:
llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h
Modified: llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h?rev=100715&r1=100714&r2=100715&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h (original)
+++ llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h Wed Apr 7 18:07:09 2010
@@ -164,13 +164,10 @@
}
IterTy getCallee() const {
- // FIXME: this is slow, since we do not have the fast versions
- // of the op_*() functions here. See CallSite::getCallee.
- //
- if (isCall())
- return getInstruction()->op_end() - 1; // Skip Function
- else
- return getInstruction()->op_end() - 3; // Skip BB, BB, Function
+ // FIXME: this is slow, since we do not have the fast versions
+ // of the op_*() functions here. See CallSite::getCallee.
+ //
+ return arg_end();
}
};
More information about the llvm-branch-commits
mailing list