diff options
author | Anna Zaks <ganna@apple.com> | 2012-08-14 05:31:46 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-08-14 05:31:46 +0000 |
commit | f345ffb2f4e75e7837d9fba8745525b36fa92ee5 (patch) | |
tree | ff2234c4103a0f724700f17d0fd66da1362b7f8c | |
parent | 00aae5243d965aa7bcee81a39ba0900c7869be21 (diff) |
[analyzer] Fixup to r161821
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161854 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index e853bdb4b7..5503b23f4a 100644 --- a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -3723,6 +3723,7 @@ void RetainCountChecker::checkDeadSymbols(SymbolReaper &SymReaper, // Debug printing of refcount bindings and autorelease pools. //===----------------------------------------------------------------------===// +#if AUTORELEASE_POOL_MODELING static void PrintPool(raw_ostream &Out, SymbolRef Sym, ProgramStateRef State) { Out << ' '; @@ -3732,16 +3733,13 @@ static void PrintPool(raw_ostream &Out, SymbolRef Sym, Out << "<pool>"; Out << ":{"; -#if AUTORELEASE_POOL_MODELING // Get the contents of the pool. if (const ARCounts *Cnts = State->get<AutoreleasePoolContents>(Sym)) for (ARCounts::iterator I = Cnts->begin(), E = Cnts->end(); I != E; ++I) Out << '(' << I.getKey() << ',' << I.getData() << ')'; -#endif Out << '}'; } -#if AUTORELEASE_POOL_MODELING static bool UsesAutorelease(ProgramStateRef state) { // A state uses autorelease if it allocated an autorelease pool or if it has // objects in the caller's autorelease pool. |