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 | e05c4dfc42cd4389f606e404a4a2ec1990d94b8e (patch) | |
tree | 38ee87aab06313bd8ba4d4eed6963bd19e6c3174 /clang/lib/Lex/PPDirectives.cpp | |
parent | f5125d19e7b466a76a5471286ad2e3d038f8cf86 (diff) | |
download | bcm5719-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/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index a8dcc535897..07c5f8ea68e 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -970,8 +970,8 @@ void Preprocessor::HandleDefineDirective(Token &DefineTok) { // Macros must be identical. This means all tokes and whitespace separation // must be the same. C99 6.10.3.2. if (!MI->isIdenticalTo(*OtherMI, *this)) { - Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef, - MacroNameTok.getIdentifierInfo()->getName()); + Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef) + << MacroNameTok.getIdentifierInfo()->getName(); Diag(OtherMI->getDefinitionLoc(), diag::ext_pp_macro_redef2); } delete OtherMI; |