]> granicus.if.org Git - clang/commitdiff
[analyzer] Change RetainCountChecker to use symbol dump method instead
authorAnna Zaks <ganna@apple.com>
Mon, 5 Dec 2011 18:58:11 +0000 (18:58 +0000)
committerAnna Zaks <ganna@apple.com>
Mon, 5 Dec 2011 18:58:11 +0000 (18:58 +0000)
of relying on SymbolID.

This way any expression can be printed (not only SymbolData).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145829 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp

index 22cd050df31e9da11da3fc2cfd69eb4ac4ab1445..2206fbef61cd3aed2dc62c6afb65f18af8121b7d 100644 (file)
@@ -3467,7 +3467,8 @@ RetainCountChecker::getDeadSymbolTag(SymbolRef sym) const {
   if (!tag) {
     llvm::SmallString<64> buf;
     llvm::raw_svector_ostream out(buf);
-    out << "RetainCountChecker : Dead Symbol : " << sym->getSymbolID();
+    out << "RetainCountChecker : Dead Symbol : ";
+    sym->dumpToStream(out);
     tag = new SimpleProgramPointTag(out.str());
   }
   return tag;  
@@ -3532,7 +3533,7 @@ static void PrintPool(raw_ostream &Out, SymbolRef Sym,
                       const ProgramState *State) {
   Out << ' ';
   if (Sym)
-    Out << Sym->getSymbolID();
+    Sym->dumpToStream(Out);
   else
     Out << "<pool>";
   Out << ":{";