forked from OSchip/llvm-project
Plist diagnostics now include PathDiagnostPiece::Kind.
llvm-svn: 65878
This commit is contained in:
parent
e780823fac
commit
53b72b4fea
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue