diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-01-12 19:10:58 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-01-12 19:10:58 +0000 | 
| commit | c6646ebdb957a3c613d389be8b0135271b8b8ece (patch) | |
| tree | 7d7da49c349072ce3f0f3bae74f696a1ea5f3e07 /lib/Transforms/Utils/Linker.cpp | |
| parent | b16689b647811d38ab5a5b990caed7f0014281c4 (diff) | |
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/Transforms/Utils/Linker.cpp')
| -rw-r--r-- | lib/Transforms/Utils/Linker.cpp | 6 | 
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Transforms/Utils/Linker.cpp b/lib/Transforms/Utils/Linker.cpp index af430bd70b..457a8b97b6 100644 --- a/lib/Transforms/Utils/Linker.cpp +++ b/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);  | 
