Plist diagnostics now include PathDiagnostPiece::Kind.

llvm-svn: 65878
This commit is contained in:
Ted Kremenek 2009-03-02 21:44:02 +00:00
parent e780823fac
commit 53b72b4fea
1 changed files with 6 additions and 0 deletions

View File

@ -134,6 +134,12 @@ static void ReportDiag(llvm::raw_ostream& o, const PathDiagnosticPiece& P,
? "above" : "below")
<< "</string>\n";
#endif
// Output the PathDiagnosticPiece::Kind.
Indent(o, indent) << "<key>kind</key>\n";
Indent(o, indent) << "<string>"
<< (P.getKind() == PathDiagnosticPiece::Event
? "Event" : "ControlFlow")
<< "</string>\n";
// Finish up.