aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-12 19:10:58 +0000
committerChris Lattner <sabre@nondot.org>2004-01-12 19:10:58 +0000
commitc6646ebdb957a3c613d389be8b0135271b8b8ece (patch)
tree7d7da49c349072ce3f0f3bae74f696a1ea5f3e07 /lib/VMCore
parentb16689b647811d38ab5a5b990caed7f0014281c4 (diff)
downloadexternal_llvm-c6646ebdb957a3c613d389be8b0135271b8b8ece.zip
external_llvm-c6646ebdb957a3c613d389be8b0135271b8b8ece.tar.gz
external_llvm-c6646ebdb957a3c613d389be8b0135271b8b8ece.tar.bz2
Remove use of ConstantExpr::getShift
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Linker.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/VMCore/Linker.cpp b/lib/VMCore/Linker.cpp
index af430bd..457a8b9 100644
--- a/lib/VMCore/Linker.cpp
+++ b/lib/VMCore/Linker.cpp
@@ -324,12 +324,6 @@ static Value *RemapOperand(const Value *In,
assert(CE->getOpcode() == Instruction::Cast);
Value *V = RemapOperand(CE->getOperand(0), LocalMap, GlobalMap);
Result = ConstantExpr::getCast(cast<Constant>(V), CE->getType());
- } else if (CE->getOpcode() == Instruction::Shl ||
- CE->getOpcode() == Instruction::Shr) { // Shift
- Value *V1 = RemapOperand(CE->getOperand(0), LocalMap, GlobalMap);
- Value *V2 = RemapOperand(CE->getOperand(1), LocalMap, GlobalMap);
- Result = ConstantExpr::getShift(CE->getOpcode(), cast<Constant>(V1),
- cast<Constant>(V2));
} else if (CE->getNumOperands() == 2) {
// Binary operator...
Value *V1 = RemapOperand(CE->getOperand(0), LocalMap, GlobalMap);