summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PreprocessorLexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Lex/PreprocessorLexer.cpp')
-rw-r--r--clang/lib/Lex/PreprocessorLexer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp
index 20bce413b74..2ce181ef83a 100644
--- a/clang/lib/Lex/PreprocessorLexer.cpp
+++ b/clang/lib/Lex/PreprocessorLexer.cpp
@@ -18,6 +18,9 @@
using namespace clang;
+PreprocessorLexer::PreprocessorLexer(Preprocessor* pp, SourceLocation L)
+ : PP(pp), FileID(pp->getSourceManager().getPhysicalLoc(L).getFileID()) {}
+
PreprocessorLexer::~PreprocessorLexer() {}
void PreprocessorLexer::Diag(SourceLocation Loc, unsigned DiagID,
OpenPOWER on IntegriCloud