]> granicus.if.org Git - clang/commitdiff
Replace more uses of 'CurLexer->' with 'CurPPLexer->'. No performance change.
authorTed Kremenek <kremenek@apple.com>
Tue, 18 Nov 2008 01:12:54 +0000 (01:12 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 18 Nov 2008 01:12:54 +0000 (01:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59482 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPMacroExpansion.cpp
lib/Lex/Pragma.cpp

index 43df71a2cc8c8aa8a98e9d9512eb699a24fa6f22..1d4d85a897375a189ee69bc24e4f0c2092acde87 100644 (file)
@@ -148,7 +148,7 @@ bool Preprocessor::HandleMacroExpandedIdentifier(Token &Identifier,
   // 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()) {
index 6d8e047056d9d098cc21b3630041a1f1a0ff4862..cc224dd8d94cf8df2ffba363ea81a3443e3c1be6 100644 (file)
@@ -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))