PTH: Use Token::setLiteralData() to directly store a pointer to cached...
PTH: Use Token::setLiteralData() to directly store a pointer to cached spelling data in the PTH file. This removes a ton of code for looking up spellings using sourcelocations in the PTH file. This simplifies both PTH-generation and reading. Performance impact for -fsyntax-only on Cocoa.h (with Cocoa.h in the PTH file): - PTH generation time improves by 5% - PTH reading improves by 0.3%. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63072 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- Driver/CacheTokens.cpp 45 additions, 78 deletionsDriver/CacheTokens.cpp
- include/clang/Lex/PTHLexer.h 1 addition, 16 deletionsinclude/clang/Lex/PTHLexer.h
- include/clang/Lex/PTHManager.h 10 additions, 38 deletionsinclude/clang/Lex/PTHManager.h
- include/clang/Lex/Preprocessor.h 0 additions, 6 deletionsinclude/clang/Lex/Preprocessor.h
- lib/Lex/PTHLexer.cpp 23 additions, 145 deletionslib/Lex/PTHLexer.cpp
- lib/Lex/Preprocessor.cpp 2 additions, 27 deletionslib/Lex/Preprocessor.cpp
Loading
Please register or sign in to comment