diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-17 05:57:07 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-17 05:57:07 +0000 |
commit | 1c96b24285d05c0eac455ae96d7c9ff43d42bc96 (patch) | |
tree | 4d2ab34daff9c66fe996657201955fb24de6cd84 /lib/Analysis/GRState.cpp | |
parent | ef8b28e9459e729b7bd8c826d204621b039611fa (diff) |
This patch did the following renaming. There should be no functional changes.
RVal => SVal
LVal => Loc
NonLVal => NonLoc
lval => loc
nonlval => nonloc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRState.cpp')
-rw-r--r-- | lib/Analysis/GRState.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Analysis/GRState.cpp b/lib/Analysis/GRState.cpp index 49bc24aa7d..09275e28a7 100644 --- a/lib/Analysis/GRState.cpp +++ b/lib/Analysis/GRState.cpp @@ -59,11 +59,11 @@ GRStateManager::RemoveDeadBindings(const GRState* St, Stmt* Loc, LSymbols, DSymbols); } -const GRState* GRStateManager::SetRVal(const GRState* St, LVal LV, - RVal V) { +const GRState* GRStateManager::SetSVal(const GRState* St, Loc LV, + SVal V) { Store OldStore = St->getStore(); - Store NewStore = StoreMgr->SetRVal(OldStore, LV, V); + Store NewStore = StoreMgr->SetSVal(OldStore, LV, V); if (NewStore == OldStore) return St; @@ -80,7 +80,7 @@ const GRState* GRStateManager::AddDecl(const GRState* St, const VarDecl* VD, if (Ex) NewStore = StoreMgr->AddDecl(OldStore, VD, Ex, - GetRVal(St, Ex), Count); + GetSVal(St, Ex), Count); else NewStore = StoreMgr->AddDecl(OldStore, VD, Ex); @@ -92,7 +92,7 @@ const GRState* GRStateManager::AddDecl(const GRState* St, const VarDecl* VD, return getPersistentState(NewSt); } -const GRState* GRStateManager::Unbind(const GRState* St, LVal LV) { +const GRState* GRStateManager::Unbind(const GRState* St, Loc LV) { Store OldStore = St->getStore(); Store NewStore = StoreMgr->Remove(OldStore, LV); @@ -240,18 +240,18 @@ const GRState* GRStateManager::addGDM(const GRState* St, void* Key, void* Data){ bool GRStateManager::isEqual(const GRState* state, Expr* Ex, const llvm::APSInt& Y) { - RVal V = GetRVal(state, Ex); + SVal V = GetSVal(state, Ex); - if (lval::ConcreteInt* X = dyn_cast<lval::ConcreteInt>(&V)) + if (loc::ConcreteInt* X = dyn_cast<loc::ConcreteInt>(&V)) return X->getValue() == Y; - if (nonlval::ConcreteInt* X = dyn_cast<nonlval::ConcreteInt>(&V)) + if (nonloc::ConcreteInt* X = dyn_cast<nonloc::ConcreteInt>(&V)) return X->getValue() == Y; - if (nonlval::SymbolVal* X = dyn_cast<nonlval::SymbolVal>(&V)) + if (nonloc::SymbolVal* X = dyn_cast<nonloc::SymbolVal>(&V)) return ConstraintMgr->isEqual(state, X->getSymbol(), Y); - if (lval::SymbolVal* X = dyn_cast<lval::SymbolVal>(&V)) + if (loc::SymbolVal* X = dyn_cast<loc::SymbolVal>(&V)) return ConstraintMgr->isEqual(state, X->getSymbol(), Y); return false; |