summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Linker.cpp
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
commit429963742e21924e92a65ba2cc3f9f8ef5bbf41a (patch)
tree1581a7063a2c0d5e8a5c411fac250c22e12995b8 /llvm/lib/Transforms/Utils/Linker.cpp
parent1b7d4d7b63d6f44fe798fcea3b69e5e0b841375a (diff)
downloadbcm5719-llvm-429963742e21924e92a65ba2cc3f9f8ef5bbf41a.tar.gz
bcm5719-llvm-429963742e21924e92a65ba2cc3f9f8ef5bbf41a.zip
Remove use of ConstantExpr::getShift
llvm-svn: 10792
Diffstat (limited to 'llvm/lib/Transforms/Utils/Linker.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Linker.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp
index af430bd70b7..457a8b97b65 100644
--- a/llvm/lib/Transforms/Utils/Linker.cpp
+++ b/llvm/lib/Transforms/Utils/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);
OpenPOWER on IntegriCloud