Add a setCalledFunction member to InvokeInst (like in CallInst)
authorGabor Greif <ggreif@gmail.com>
Sat, 20 Mar 2010 21:00:25 +0000 (21:00 +0000)
committerGabor Greif <ggreif@gmail.com>
Sat, 20 Mar 2010 21:00:25 +0000 (21:00 +0000)
commit654c06f6457f80428e40810ad251c412462731e4
treefad6797f10e35c67c651371c56650ba1357a6dfc
parent25eb5013d0516e7ba5105a1ca25c9f61d2ddb0b2
Add a setCalledFunction member to InvokeInst (like in CallInst)
and use this (as well as getCalledValue) to access the callee,
instead of {g|s}etOperand(0).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99084 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp