diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-22 13:52:13 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-22 13:52:13 +0000 |
commit | 2ce43c8f43254a9edea53a20dc0e69195bc82ae0 (patch) | |
tree | 2522a3291d0742521e6d1994c3df7675df54639d /lib/Checker/GRState.cpp | |
parent | 664cffd330611d78fc0286f539589920a37ca328 (diff) |
Make a bunch of new data structures for the new analysis
engine of the new translation unit. State marshal is there but no real
work is done. End nodes are passed back.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRState.cpp')
-rw-r--r-- | lib/Checker/GRState.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Checker/GRState.cpp b/lib/Checker/GRState.cpp index 9e584b5614..67b3dfe0b6 100644 --- a/lib/Checker/GRState.cpp +++ b/lib/Checker/GRState.cpp @@ -57,6 +57,17 @@ GRStateManager::RemoveDeadBindings(const GRState* state, return ConstraintMgr->RemoveDeadBindings(s, SymReaper); } +const GRState *GRStateManager::MarshalState(const GRState *state, + const LocationContext *InitLoc) { + // make up an empty state for now. + GRState State(this, + EnvMgr.getInitialEnvironment(), + StoreMgr->getInitialStore(InitLoc), + GDMFactory.GetEmptyMap()); + + return getPersistentState(State); +} + const GRState *GRState::unbindLoc(Loc LV) const { Store OldStore = getStore(); Store NewStore = getStateManager().StoreMgr->Remove(OldStore, LV); |