diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-22 06:20:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-22 06:20:42 +0000 |
commit | 57dab26be1a1e180963b51c631e655d022f14413 (patch) | |
tree | b036c0b4558a7d6351a192ba552f93c725b5b05d /clang/lib/Lex/PreprocessorLexer.cpp | |
parent | 20e11f8fc895cd96fab4c1565cfd8d2e0dfe35ed (diff) | |
download | bcm5719-llvm-57dab26be1a1e180963b51c631e655d022f14413.tar.gz bcm5719-llvm-57dab26be1a1e180963b51c631e655d022f14413.zip |
remove a sneaky version of Diag hiding in PreprocessorLexer.
llvm-svn: 59858
Diffstat (limited to 'clang/lib/Lex/PreprocessorLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PreprocessorLexer.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp index 6e479625e0f..5b3538a45b1 100644 --- a/clang/lib/Lex/PreprocessorLexer.cpp +++ b/clang/lib/Lex/PreprocessorLexer.cpp @@ -15,7 +15,6 @@ #include "clang/Lex/Preprocessor.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/SourceManager.h" - using namespace clang; PreprocessorLexer::PreprocessorLexer(Preprocessor* pp, SourceLocation L) @@ -26,11 +25,6 @@ PreprocessorLexer::PreprocessorLexer(Preprocessor* pp, SourceLocation L) PreprocessorLexer::~PreprocessorLexer() {} -void PreprocessorLexer::Diag(SourceLocation Loc, unsigned DiagID, - const std::string &Msg) const { - PP->Diag(Loc, DiagID) << Msg; -} - /// LexIncludeFilename - After the preprocessor has parsed a #include, lex and /// (potentially) macro expand the filename. void PreprocessorLexer::LexIncludeFilename(Token &FilenameTok) { @@ -49,5 +43,5 @@ void PreprocessorLexer::LexIncludeFilename(Token &FilenameTok) { // No filename? if (FilenameTok.is(tok::eom)) - Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); + PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); } |