diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-12-01 21:28:31 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-12-01 21:28:31 +0000 |
commit | 846eabd187be4bfe992e8bca131166b734d86e0d (patch) | |
tree | 665d8a86d76612f2b117ca9c6fd53e4f1f146105 /lib/Checker/RegionStore.cpp | |
parent | 2ab03034925829614eb9ed186d0a4fb6f8e2b69a (diff) |
Rename 'SValuator' to 'SValBuilder'. The new name
reflects what the class actually does.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/RegionStore.cpp')
-rw-r--r-- | lib/Checker/RegionStore.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Checker/RegionStore.cpp b/lib/Checker/RegionStore.cpp index ae0dedff39..cde8ab978d 100644 --- a/lib/Checker/RegionStore.cpp +++ b/lib/Checker/RegionStore.cpp @@ -756,8 +756,8 @@ DefinedOrUnknownSVal RegionStoreManager::getSizeInElements(const GRState *state, const MemRegion *R, QualType EleTy) { SVal Size = cast<SubRegion>(R)->getExtent(ValMgr); - SValuator &SVator = ValMgr.getSValuator(); - const llvm::APSInt *SizeInt = SVator.getKnownValue(state, Size); + SValBuilder &svalBuilder = ValMgr.getSValBuilder(); + const llvm::APSInt *SizeInt = svalBuilder.getKnownValue(state, Size); if (!SizeInt) return UnknownVal(); @@ -911,7 +911,7 @@ SVal RegionStoreManager::EvalBinOp(BinaryOperator::Opcode Op, Loc L, NonLoc R, // (b) 0 + symbolic index if (Base) { if (nonloc::ConcreteInt *Offset = dyn_cast<nonloc::ConcreteInt>(&R)) { - // FIXME: Should use SValuator here. + // FIXME: Should use SValBuilder here. SVal NewIdx = Base->evalBinOp(ValMgr, Op, cast<nonloc::ConcreteInt>(ValMgr.convertToArrayIndex(*Offset))); @@ -1307,8 +1307,8 @@ SVal RegionStoreManager::RetrieveVar(Store store, const VarRegion *R) { if (const IntegerLiteral *IL = dyn_cast<IntegerLiteral>(Init->IgnoreParenCasts())) { const nonloc::ConcreteInt &V = ValMgr.makeIntVal(IL); - return ValMgr.getSValuator().EvalCast(V, Init->getType(), - IL->getType()); + return ValMgr.getSValBuilder().EvalCast(V, Init->getType(), + IL->getType()); } } |