Add arg_begin() and arg_end() to CallInst and InvokeInst; NFCI
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 10 Dec 2015 06:39:02 +0000 (06:39 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 10 Dec 2015 06:39:02 +0000 (06:39 +0000)
commitfd947f33ba2b1260d7496776c96d5674ee3c9ef4
tree0aab7b11f1a20158f51c8c573afc6d9f8ea8c181
parent224a9299ff8ffc4e9394566055c59b2da29490ac
Add arg_begin() and arg_end() to CallInst and InvokeInst; NFCI

 - This simplifies the CallSite class, arg_begin / arg_end are now
   simple wrapper getters.

 - In several places, we were creating CallSite instances solely to call
   arg_begin and arg_end.  With this change, that's no longer required.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255226 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/CallSite.h
include/llvm/IR/Instructions.h
lib/IR/Instructions.cpp
lib/Transforms/IPO/PruneEH.cpp
lib/Transforms/Utils/InlineFunction.cpp
lib/Transforms/Utils/Local.cpp