From 9d8d0fc04d69bfae2478eb17df5e0335648a82c5 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Thu, 12 Mar 2009 07:54:17 +0000 Subject: [PATCH] Add comments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66782 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/Environment.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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, -- 2.40.0