aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PreprocessorLexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-22 06:20:42 +0000
committerChris Lattner <sabre@nondot.org>2008-11-22 06:20:42 +0000
commit306fda76b0818eb7c215094123f2e16729a44aed (patch)
tree886e5abe190a6bb3b4f44faffc0415539ed6046f /lib/Lex/PreprocessorLexer.cpp
parentbcf6225ad69ea388e287f952981fd076636991b2 (diff)
remove a sneaky version of Diag hiding in PreprocessorLexer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PreprocessorLexer.cpp')
-rw-r--r--lib/Lex/PreprocessorLexer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Lex/PreprocessorLexer.cpp b/lib/Lex/PreprocessorLexer.cpp
index 6e479625e0..5b3538a45b 100644
--- a/lib/Lex/PreprocessorLexer.cpp
+++ b/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);
}