Use use_iterator::getOperandNo instead of CallSite::hasArgument to check if a
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 5 Jun 2008 08:34:25 +0000 (08:34 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 5 Jun 2008 08:34:25 +0000 (08:34 +0000)
commit41335411a84aaf709e79b86b7dc109976940b772
tree9fee8058f65c9124301e5004497d5b613819fb8a
parent045b3f7bf1f136f609d64e50b3737b6eccae1ed8
Use use_iterator::getOperandNo instead of CallSite::hasArgument to check if a
function is passed as an argument instead of called. Also do this check a bit
earlier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/DeadArgumentElimination.cpp