diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-07-04 07:11:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-07-04 07:11:10 +0000 |
| commit | 371ac8a9b782d65cae1afadf89ce67c061074969 (patch) | |
| tree | 51cec6fe133368c0e1dc6039072d0958bae83744 /clang/Lex/Pragma.cpp | |
| parent | d7dfa57efd4a76a7dcf8ea73a30802dcdaf48674 (diff) | |
| download | bcm5719-llvm-371ac8a9b782d65cae1afadf89ce67c061074969.tar.gz bcm5719-llvm-371ac8a9b782d65cae1afadf89ce67c061074969.zip | |
Implement the automaton for recognizing files with controlling macros.
llvm-svn: 38646
Diffstat (limited to 'clang/Lex/Pragma.cpp')
| -rw-r--r-- | clang/Lex/Pragma.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/Lex/Pragma.cpp b/clang/Lex/Pragma.cpp index 9b0fe5f495a..183bed17663 100644 --- a/clang/Lex/Pragma.cpp +++ b/clang/Lex/Pragma.cpp @@ -74,6 +74,9 @@ void PragmaNamespace::HandlePragma(Preprocessor &PP, LexerToken &Tok) { void Preprocessor::HandlePragmaDirective() { ++NumPragma; + // Inform MIOpt that we found a side-effect of parsing this file. + CurLexer->MIOpt.ReadDirective(); + // Invoke the first level of pragma handlers which reads the namespace id. LexerToken Tok; PragmaHandlers->HandlePragma(*this, Tok); |

