summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-12-05 18:58:11 +0000
committerAnna Zaks <ganna@apple.com>2011-12-05 18:58:11 +0000
commit223516523ee764dff96bd054ef9c75a86f8ab235 (patch)
tree7e96ecbd8002ff2cc324c1c2a9c09938f22aa717 /clang
parentf784d08d25763ec5cf6b419b98697a9b256039d2 (diff)
downloadbcm5719-llvm-223516523ee764dff96bd054ef9c75a86f8ab235.tar.gz
bcm5719-llvm-223516523ee764dff96bd054ef9c75a86f8ab235.zip
[analyzer] Change RetainCountChecker to use symbol dump method instead
of relying on SymbolID. This way any expression can be printed (not only SymbolData). llvm-svn: 145829
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
index 22cd050df31..2206fbef61c 100644
--- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
@@ -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 << ":{";
OpenPOWER on IntegriCloud