diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-06-18 23:20:05 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-06-18 23:20:05 +0000 |
commit | f1b8227d758721075e3a84a85e66cb7173334b13 (patch) | |
tree | c5a693fd915782a532130bcea8337d56bb861475 /lib/Analysis/SimpleConstraintManager.h | |
parent | a591bc04d21fa62ebffcb2c7814d738ca8f5e2f9 (diff) |
Remove GRStateManager& field from SimpleConstraintManager.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/SimpleConstraintManager.h')
-rw-r--r-- | lib/Analysis/SimpleConstraintManager.h | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/lib/Analysis/SimpleConstraintManager.h b/lib/Analysis/SimpleConstraintManager.h index bd18b6af93..1e1a10da03 100644 --- a/lib/Analysis/SimpleConstraintManager.h +++ b/lib/Analysis/SimpleConstraintManager.h @@ -20,22 +20,18 @@ namespace clang { class SimpleConstraintManager : public ConstraintManager { -protected: - GRStateManager& StateMgr; public: - SimpleConstraintManager(GRStateManager& statemgr) - : StateMgr(statemgr) {} - virtual ~SimpleConstraintManager(); - - bool canReasonAbout(SVal X) const; + SimpleConstraintManager() {} + virtual ~SimpleConstraintManager(); - virtual const GRState *Assume(const GRState *state, SVal Cond, - bool Assumption); - //===------------------------------------------------------------------===// // Common implementation for the interface provided by ConstraintManager. //===------------------------------------------------------------------===// - + + bool canReasonAbout(SVal X) const; + + const GRState *Assume(const GRState *state, SVal Cond, bool Assumption); + const GRState *Assume(const GRState *state, Loc Cond, bool Assumption); const GRState *Assume(const GRState *state, NonLoc Cond, bool Assumption); @@ -77,14 +73,6 @@ protected: const GRState *AssumeAux(const GRState *state, Loc Cond,bool Assumption); const GRState *AssumeAux(const GRState *state, NonLoc Cond, bool Assumption); - - //===------------------------------------------------------------------===// - // FIXME: These can probably be removed now. - //===------------------------------------------------------------------===// - -private: - BasicValueFactory& getBasicVals() { return StateMgr.getBasicVals(); } - SymbolManager& getSymbolManager() const { return StateMgr.getSymbolManager(); } }; } // end clang namespace |