diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-04-17 09:33:03 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-04-17 09:33:03 +0000 |
commit | b11416d061f6710b0548bb6fbd730a32b8e66226 (patch) | |
tree | 6a69d5fda952634036fd64b7b0b1b89eb788cb3a /clang/lib/Checker/CFRefCount.cpp | |
parent | ca0a53ac52992973d9aad654f4d8e2961d174de4 (diff) | |
download | bcm5719-llvm-b11416d061f6710b0548bb6fbd730a32b8e66226.tar.gz bcm5719-llvm-b11416d061f6710b0548bb6fbd730a32b8e66226.zip |
Add raw_ostream operators to NamedDecl for convenience. Switch over all users of getNameAsString on a stream.
The next step is to print the name directly into the stream, avoiding a temporary std::string copy.
llvm-svn: 101632
Diffstat (limited to 'clang/lib/Checker/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Checker/CFRefCount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/CFRefCount.cpp b/clang/lib/Checker/CFRefCount.cpp index 3c4a27cc07f..a0b46661600 100644 --- a/clang/lib/Checker/CFRefCount.cpp +++ b/clang/lib/Checker/CFRefCount.cpp @@ -2081,7 +2081,7 @@ PathDiagnosticPiece* CFRefReport::VisitNode(const ExplodedNode* N, // Get the name of the callee (if it is available). SVal X = CurrSt->getSValAsScalarOrLoc(CE->getCallee()); if (const FunctionDecl* FD = X.getAsFunctionDecl()) - os << "Call to function '" << FD->getNameAsString() <<'\''; + os << "Call to function '" << FD << '\''; else os << "function call"; } |