commit | 1a8def6ad6b7b114abd31524d73ad8062a82fbc8 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Jan 26 20:37:11 2012 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Jan 26 20:37:11 2012 +0000 |
tree | 8d92dae42e25aa5199d1ecb4814be4579caf0d82 | |
parent | 6a5d0e2a98003f5235ed8c3b9a439ad85d3d91d9 [diff] |
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