diff options
author | Jordy Rose <jediknil@belkadan.com> | 2010-08-03 20:44:35 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2010-08-03 20:44:35 +0000 |
commit | ff59efd65bb1f2f8d005079597f814a3c8381f95 (patch) | |
tree | 59c765af616e3fe64c00f40c2687084dc7c1609c /lib/Checker/Store.cpp | |
parent | eb8837b88c18631c69ac75f64ab1853762063180 (diff) |
Makes GRState::makeWithStore private, to encourage clients to make store changes through GRState instead of directly accessing the StoreManager. Also adds cover methods for InvalidateRegion(s) and EnterStackFrame to GRState.
This is in preparation for proposed region change notifications. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/Store.cpp')
-rw-r--r-- | lib/Checker/Store.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Checker/Store.cpp b/lib/Checker/Store.cpp index b3aab66512..7a43f7bd66 100644 --- a/lib/Checker/Store.cpp +++ b/lib/Checker/Store.cpp @@ -21,6 +21,11 @@ StoreManager::StoreManager(GRStateManager &stateMgr) : ValMgr(stateMgr.getValueManager()), StateMgr(stateMgr), MRMgr(ValMgr.getRegionManager()), Ctx(stateMgr.getContext()) {} +Store StoreManager::EnterStackFrame(const GRState *state, + const StackFrameContext *frame) { + return state->getStore(); +} + const MemRegion *StoreManager::MakeElementRegion(const MemRegion *Base, QualType EleTy, uint64_t index) { SVal idx = ValMgr.makeArrayIndex(index); |