// If this is a macro exapnsion in the "#if !defined(x)" line for the file,
// then the macro could expand to different things in other contexts, we need
// to disable the optimization in this case.
- if (CurLexer) CurLexer->MIOpt.ExpandedMacro();
+ if (CurPPLexer) CurPPLexer->MIOpt.ExpandedMacro();
// If this is a builtin macro, like __LINE__ or _Pragma, handle it specially.
if (MI->isBuiltinMacro()) {
PragmaHandlers->HandlePragma(*this, Tok);
// If the pragma handler didn't read the rest of the line, consume it now.
- if (CurLexer->ParsingPreprocessorDirective)
+ if (CurPPLexer->ParsingPreprocessorDirective)
DiscardUntilEndOfDirective();
}
// This avoids errors on code like:
// #pragma GCC poison X
// #pragma GCC poison X
- if (CurLexer) CurLexer->LexingRawMode = true;
+ if (CurPPLexer) CurPPLexer->LexingRawMode = true;
LexUnexpandedToken(Tok);
- if (CurLexer) CurLexer->LexingRawMode = false;
+ if (CurPPLexer) CurPPLexer->LexingRawMode = false;
// If we reached the end of line, we're done.
if (Tok.is(tok::eom)) return;
///
void Preprocessor::HandlePragmaDependency(Token &DependencyTok) {
Token FilenameTok;
- CurLexer->LexIncludeFilename(FilenameTok);
+ CurPPLexer->LexIncludeFilename(FilenameTok);
// If the token kind is EOM, the error has already been diagnosed.
if (FilenameTok.is(tok::eom))