-
- Downloads
Optimize the preprocessor's handling of the __import_module__
keyword. We now handle this keyword in HandleIdentifier, making a note for ourselves when we've seen the __import_module__ keyword so that the next lexed token can trigger a module import (if needed). This greatly simplifies Preprocessor::Lex(), and completely erases the 5.5% -Eonly slowdown Argiris noted when I originally implemented __import_module__. Big thanks to Argiris for noting that horrible regression! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139265 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/IdentifierTable.h 1 addition, 1 deletioninclude/clang/Basic/IdentifierTable.h
- include/clang/Lex/Preprocessor.h 31 additions, 25 deletionsinclude/clang/Lex/Preprocessor.h
- lib/Lex/PPCaching.cpp 2 additions, 0 deletionslib/Lex/PPCaching.cpp
- lib/Lex/PPLexerChange.cpp 10 additions, 2 deletionslib/Lex/PPLexerChange.cpp
- lib/Lex/Preprocessor.cpp 30 additions, 15 deletionslib/Lex/Preprocessor.cpp
Please register or sign in to comment