From: Zhongxing Xu Date: Thu, 12 Mar 2009 07:54:17 +0000 (+0000) Subject: Add comments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d8d0fc04d69bfae2478eb17df5e0335648a82c5;p=clang Add comments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66782 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/Environment.cpp b/lib/Analysis/Environment.cpp index 41adddc360..2bc071a265 100644 --- a/lib/Analysis/Environment.cpp +++ b/lib/Analysis/Environment.cpp @@ -115,6 +115,14 @@ public: }; } // end anonymous namespace +// RemoveDeadBindings: +// - Remove subexpression bindings. +// - Remove dead block expression bindings. +// - Keep live block expression bindings: +// - Mark their reachable symbols live in SymbolReaper, +// see ScanReachableSymbols. +// - Mark the region in DRoots if the binding is a loc::MemRegionVal. + Environment EnvironmentManager::RemoveDeadBindings(Environment Env, Stmt* Loc, SymbolReaper& SymReaper,