diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-18 21:48:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-18 21:48:13 +0000 |
commit | 204b2fed909b1eabea7aeb6caadd7cff718edee5 (patch) | |
tree | d8d3acfa6538b35a5d2a896ac44496d1ad16810f /lib/Lex/LiteralSupport.cpp | |
parent | 6dc2317b59cb1180a59f6c283d96b7a5dfeb5307 (diff) |
Remove the last of the old-style Preprocessor::Diag methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/LiteralSupport.cpp')
-rw-r--r-- | lib/Lex/LiteralSupport.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp index 34b59255ac..93e9524ee4 100644 --- a/lib/Lex/LiteralSupport.cpp +++ b/lib/Lex/LiteralSupport.cpp @@ -53,7 +53,7 @@ static unsigned ProcessCharEscape(const char *&ThisTokBuf, ResultChar = 8; break; case 'e': - PP.Diag(Loc, diag::ext_nonstandard_escape, "e"); + PP.Diag(Loc, diag::ext_nonstandard_escape) << "e"; ResultChar = 27; break; case 'f': @@ -135,16 +135,16 @@ static unsigned ProcessCharEscape(const char *&ThisTokBuf, case '(': case '{': case '[': case '%': // GCC accepts these as extensions. We warn about them as such though. if (!PP.getLangOptions().NoExtensions) { - PP.Diag(Loc, diag::ext_nonstandard_escape, - std::string()+(char)ResultChar); + PP.Diag(Loc, diag::ext_nonstandard_escape) + << std::string()+(char)ResultChar; break; } // FALL THROUGH. default: if (isgraph(ThisTokBuf[0])) { - PP.Diag(Loc, diag::ext_unknown_escape, std::string()+(char)ResultChar); + PP.Diag(Loc, diag::ext_unknown_escape) << std::string()+(char)ResultChar; } else { - PP.Diag(Loc, diag::ext_unknown_escape, "x"+llvm::utohexstr(ResultChar)); + PP.Diag(Loc, diag::ext_unknown_escape) << "x"+llvm::utohexstr(ResultChar); } break; } @@ -531,8 +531,8 @@ GetFloatValue(const llvm::fltSemantics &Format, bool* isExact) { } void NumericLiteralParser::Diag(SourceLocation Loc, unsigned DiagID, - const std::string &M) { - PP.Diag(Loc, DiagID, M); + const std::string &M) { + PP.Diag(Loc, DiagID) << M; hadError = true; } |