aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Pragma.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-18 01:12:54 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-18 01:12:54 +0000
commit68a91d5736c2c03d60a9d1c59d08191b8e0d6c52 (patch)
treeac5cc42e78192f0ebf87ccea637a6627617604d8 /lib/Lex/Pragma.cpp
parentf6452c5421c5db5a7ceff581525f286931d97f1a (diff)
Replace more uses of 'CurLexer->' with 'CurPPLexer->'. No performance change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Pragma.cpp')
-rw-r--r--lib/Lex/Pragma.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Lex/Pragma.cpp b/lib/Lex/Pragma.cpp
index 6d8e047056..cc224dd8d9 100644
--- a/lib/Lex/Pragma.cpp
+++ b/lib/Lex/Pragma.cpp
@@ -89,7 +89,7 @@ void Preprocessor::HandlePragmaDirective() {
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();
}
@@ -203,9 +203,9 @@ void Preprocessor::HandlePragmaPoison(Token &PoisonTok) {
// 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;
@@ -257,7 +257,7 @@ void Preprocessor::HandlePragmaSystemHeader(Token &SysHeaderTok) {
///
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))