]> granicus.if.org Git - clang/commitdiff
Remove dead method ProgramState::MarshalState().
authorTed Kremenek <kremenek@apple.com>
Sun, 9 Sep 2012 14:55:59 +0000 (14:55 +0000)
committerTed Kremenek <kremenek@apple.com>
Sun, 9 Sep 2012 14:55:59 +0000 (14:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163479 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
lib/StaticAnalyzer/Core/ProgramState.cpp

index 42795044874dd4d735cd5230492a1345d7bfb5b5..f23f4046a70d0d12f6e7d10f72d41e1b1e954e7d 100644 (file)
@@ -493,10 +493,6 @@ public:
                                     const StackFrameContext *LCtx,
                                     SymbolReaper& SymReaper);
 
-  /// Marshal a new state for the callee in another translation unit.
-  /// 'state' is owned by the caller's engine.
-  ProgramStateRef MarshalState(ProgramStateRef state, const StackFrameContext *L);
-
 public:
 
   SVal ArrayToPointer(Loc Array) {
index 3c7e28e94619678b5d970b3328448fc14dd53fcf..56c6c04df0c18d7c8e5e4d966159fc89c6a41d0a 100644 (file)
@@ -111,17 +111,6 @@ ProgramStateManager::removeDeadBindings(ProgramStateRef state,
   return ConstraintMgr->removeDeadBindings(Result, SymReaper);
 }
 
-ProgramStateRef ProgramStateManager::MarshalState(ProgramStateRef state,
-                                            const StackFrameContext *InitLoc) {
-  // make up an empty state for now.
-  ProgramState State(this,
-                EnvMgr.getInitialEnvironment(),
-                StoreMgr->getInitialStore(InitLoc),
-                GDMFactory.getEmptyMap());
-
-  return getPersistentState(State);
-}
-
 ProgramStateRef ProgramState::bindCompoundLiteral(const CompoundLiteralExpr *CL,
                                             const LocationContext *LC,
                                             SVal V) const {