diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-11-18 01:12:54 +0000 | 
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-11-18 01:12:54 +0000 | 
| commit | 551c82aa7b1bae594ba4b7f0263ffec3c885cd37 (patch) | |
| tree | e4b1d82eb6220e57072f9d45e4db3c103314c501 /clang | |
| parent | e2d8e5ff97d260d4cf1fa4e85ebefd7939741d5d (diff) | |
| download | bcm5719-llvm-551c82aa7b1bae594ba4b7f0263ffec3c885cd37.tar.gz bcm5719-llvm-551c82aa7b1bae594ba4b7f0263ffec3c885cd37.zip  | |
Replace more uses of 'CurLexer->' with 'CurPPLexer->'.  No performance change.
llvm-svn: 59482
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/Lex/Pragma.cpp | 8 | 
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index 43df71a2cc8..1d4d85a8973 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -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()) { diff --git a/clang/lib/Lex/Pragma.cpp b/clang/lib/Lex/Pragma.cpp index 6d8e047056d..cc224dd8d94 100644 --- a/clang/lib/Lex/Pragma.cpp +++ b/clang/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))  | 

