diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-29 18:55:55 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-29 18:55:55 +0000 |
commit | 487375e9a2c9bd64869aab778ef26770ed4bef67 (patch) | |
tree | c6360f5a96c7c7ced626d13ed8c98de3f99391ec /llvm/lib/Transforms/Utils/LowerSwitch.cpp | |
parent | ade90fd1ba0c99780076c11ff0a23c2aa5319228 (diff) | |
download | bcm5719-llvm-487375e9a2c9bd64869aab778ef26770ed4bef67.tar.gz bcm5719-llvm-487375e9a2c9bd64869aab778ef26770ed4bef67.zip |
Move ConstantExpr to 2.5 API.
llvm-svn: 77494
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerSwitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LowerSwitch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerSwitch.cpp b/llvm/lib/Transforms/Utils/LowerSwitch.cpp index 0f1e719e4c0..c330a480d6c 100644 --- a/llvm/lib/Transforms/Utils/LowerSwitch.cpp +++ b/llvm/lib/Transforms/Utils/LowerSwitch.cpp @@ -200,11 +200,11 @@ BasicBlock* LowerSwitch::newLeafBlock(CaseRange& Leaf, Value* Val, "SwitchLeaf"); } else { // Emit V-Lo <=u Hi-Lo - Constant* NegLo = Context.getConstantExprNeg(Leaf.Low); + Constant* NegLo = ConstantExpr::getNeg(Leaf.Low); Instruction* Add = BinaryOperator::CreateAdd(Val, NegLo, Val->getName()+".off", NewLeaf); - Constant *UpperBound = Context.getConstantExprAdd(NegLo, Leaf.High); + Constant *UpperBound = ConstantExpr::getAdd(NegLo, Leaf.High); Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Add, UpperBound, "SwitchLeaf"); } |