Reduce a lot of code duplication by implementing
authorChris Lattner <sabre@nondot.org>
Thu, 26 Jan 2012 20:37:11 +0000 (20:37 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Jan 2012 20:37:11 +0000 (20:37 +0000)
commit1a8def6ad6b7b114abd31524d73ad8062a82fbc8
tree8d92dae42e25aa5199d1ecb4814be4579caf0d82
parent6a5d0e2a98003f5235ed8c3b9a439ad85d3d91d9
Reduce a lot of code duplication by implementing
ConstantExpr::getWithOperandReplaced and ConstantExpr::replaceUsesOfWithOnConstant
 in terms of ConstantExpr::getWithOperands.  While we're at it,
make sure that ConstantExpr::getWithOperands covers all instructions: it was
missing insert/extractvalue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149076 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Constants.cpp