diff options
| author | Alp Toker <alp@nuanti.com> | 2014-07-09 01:37:24 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-07-09 01:37:24 +0000 |
| commit | 4ea0d2389be998469758d929f651c29095d98641 (patch) | |
| tree | 6da842cca914a894e7821aabd07f1cfe1250c3e4 /clang/lib | |
| parent | 013434e547264f46db5a559b2fcdda5a791484ec (diff) | |
| download | bcm5719-llvm-4ea0d2389be998469758d929f651c29095d98641.tar.gz bcm5719-llvm-4ea0d2389be998469758d929f651c29095d98641.zip | |
Simplify warning flag value handling from r206826
Also give the field it a more appropriate name and improve the docs.
llvm-svn: 212584
Diffstat (limited to 'clang/lib')
| -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 1d34abfd421..6271509d365 100644 --- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/clang/lib/Frontend/TextDiagnosticPrinter.cpp @@ -83,7 +83,7 @@ static void printDiagnosticOptions(raw_ostream &OS, if (!Opt.empty()) { OS << (Started ? "," : " [") << (Level == DiagnosticsEngine::Remark ? "-R" : "-W") << Opt; - StringRef OptValue = Info.getDiags()->getFlagNameValue(); + StringRef OptValue = Info.getDiags()->getFlagValue(); if (!OptValue.empty()) OS << "=" << OptValue; Started = true; |

