summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/LiteralSupport.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-18 21:48:13 +0000
committerChris Lattner <sabre@nondot.org>2008-11-18 21:48:13 +0000
commite05c4dfc42cd4389f606e404a4a2ec1990d94b8e (patch)
tree38ee87aab06313bd8ba4d4eed6963bd19e6c3174 /clang/lib/Lex/LiteralSupport.cpp
parentf5125d19e7b466a76a5471286ad2e3d038f8cf86 (diff)
downloadbcm5719-llvm-e05c4dfc42cd4389f606e404a4a2ec1990d94b8e.tar.gz
bcm5719-llvm-e05c4dfc42cd4389f606e404a4a2ec1990d94b8e.zip
Remove the last of the old-style Preprocessor::Diag methods.
llvm-svn: 59554
Diffstat (limited to 'clang/lib/Lex/LiteralSupport.cpp')
-rw-r--r--clang/lib/Lex/LiteralSupport.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp
index 34b59255ac7..93e9524ee4e 100644
--- a/clang/lib/Lex/LiteralSupport.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud