From 57dab26be1a1e180963b51c631e655d022f14413 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 22 Nov 2008 06:20:42 +0000 Subject: remove a sneaky version of Diag hiding in PreprocessorLexer. llvm-svn: 59858 --- clang/lib/Lex/PreprocessorLexer.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'clang/lib/Lex/PreprocessorLexer.cpp') 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); } -- cgit v1.2.3