diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-13 20:58:05 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-13 20:58:05 +0000 |
commit | 542619e6d56d97e40b22b0876f6ca57f61112169 (patch) | |
tree | 79db7a82031449710a7cdb8fa0dbe3fe356bea01 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | 74a0ba15d335ee53eccdb091a8d905c0cc2d3055 (diff) | |
download | bcm5719-llvm-542619e6d56d97e40b22b0876f6ca57f61112169.tar.gz bcm5719-llvm-542619e6d56d97e40b22b0876f6ca57f61112169.zip |
Move more functionality over to LLVMContext.
llvm-svn: 75497
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 6a028c19faf..2db39c4e0c4 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -2067,17 +2067,20 @@ const SCEV *ScalarEvolution::getNegativeSCEV(const SCEV *V) { const Type *Ty = V->getType(); Ty = getEffectiveSCEVType(Ty); - return getMulExpr(V, getConstant(ConstantInt::getAllOnesValue(Ty))); + return getMulExpr(V, + getConstant(cast<ConstantInt>(Context->getAllOnesValue(Ty)))); } /// getNotSCEV - Return a SCEV corresponding to ~V = -1-V const SCEV *ScalarEvolution::getNotSCEV(const SCEV *V) { if (const SCEVConstant *VC = dyn_cast<SCEVConstant>(V)) - return getConstant(cast<ConstantInt>(ConstantExpr::getNot(VC->getValue()))); + return getConstant( + cast<ConstantInt>(Context->getConstantExprNot(VC->getValue()))); const Type *Ty = V->getType(); Ty = getEffectiveSCEVType(Ty); - const SCEV *AllOnes = getConstant(ConstantInt::getAllOnesValue(Ty)); + const SCEV *AllOnes = + getConstant(cast<ConstantInt>(Context->getAllOnesValue(Ty))); return getMinusSCEV(AllOnes, V); } |