diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-07 11:57:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-07 11:57:57 +0000 |
commit | a59d20b135bfde058a5a69045bab5ec4e2553f74 (patch) | |
tree | 315b8539cc8af111d5cfc6d843ca040f974cc0f3 /lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp | |
parent | f978059b82db8c0d849c5f992036210b5ca53200 (diff) |
Print NamedDecls directly to a raw_ostream where possible.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp b/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp index f769ea6ade..02ef6dc9cc 100644 --- a/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp @@ -165,18 +165,18 @@ void WalkAST::ReportVirtualCall(const CallExpr *CE, bool isPure) { os << "Call Path : "; // Name of current visiting CallExpr. - os << CE->getDirectCallee()->getNameAsString(); + os << *CE->getDirectCallee(); // Name of the CallExpr whose body is current walking. if (visitingCallExpr) - os << " <-- " << visitingCallExpr->getDirectCallee()->getNameAsString(); + os << " <-- " << *visitingCallExpr->getDirectCallee(); // Names of FunctionDecls in worklist with state PostVisited. for (SmallVectorImpl<const CallExpr *>::iterator I = WList.end(), E = WList.begin(); I != E; --I) { const FunctionDecl *FD = (*(I-1))->getDirectCallee(); assert(FD); if (VisitedFunctions[FD] == PostVisited) - os << " <-- " << FD->getNameAsString(); + os << " <-- " << *FD; } PathDiagnosticLocation CELoc = |