diff options
| author | Alp Toker <alp@nuanti.com> | 2014-06-22 10:08:06 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-06-22 10:08:06 +0000 |
| commit | 2724ec37f312377e65c48d9b758e5c59df2c27a9 (patch) | |
| tree | 684e080514b785ff19b7886ec4e01e6b8d600382 /clang/lib/Frontend | |
| parent | f1ffc84f10bc0d99ae34e38b9fb8a3ceebf9a748 (diff) | |
| download | bcm5719-llvm-2724ec37f312377e65c48d9b758e5c59df2c27a9.tar.gz bcm5719-llvm-2724ec37f312377e65c48d9b758e5c59df2c27a9.zip | |
TextDiagnosticPrinter: use the mapped level for remark flag computation
Custom diagnostics don't have a builtin class so this wouldn't have worked.
Reduces surface area of remark-related changes.
No test coverage.
llvm-svn: 211462
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/TextDiagnosticPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/clang/lib/Frontend/TextDiagnosticPrinter.cpp index d6df6556122..1d34abfd421 100644 --- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/clang/lib/Frontend/TextDiagnosticPrinter.cpp @@ -82,7 +82,7 @@ static void printDiagnosticOptions(raw_ostream &OS, StringRef Opt = DiagnosticIDs::getWarningOptionForDiag(Info.getID()); if (!Opt.empty()) { OS << (Started ? "," : " [") - << (DiagnosticIDs::isRemark(Info.getID()) ? "-R" : "-W") << Opt; + << (Level == DiagnosticsEngine::Remark ? "-R" : "-W") << Opt; StringRef OptValue = Info.getDiags()->getFlagNameValue(); if (!OptValue.empty()) OS << "=" << OptValue; |

