]> granicus.if.org Git - clang/commit
PTH: Use Token::setLiteralData() to directly store a pointer to cached spelling data...
authorTed Kremenek <kremenek@apple.com>
Tue, 27 Jan 2009 00:01:05 +0000 (00:01 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 27 Jan 2009 00:01:05 +0000 (00:01 +0000)
commit277faca30c9f8f72b79f55695cbe3395ec246e7c
tree80ed507b156a6d73ba2cf5651e772dd55f7adee0
parent528473335419f072f6eff25a4af07925c1692121
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
Driver/CacheTokens.cpp
include/clang/Lex/PTHLexer.h
include/clang/Lex/PTHManager.h
include/clang/Lex/Preprocessor.h
lib/Lex/PTHLexer.cpp
lib/Lex/Preprocessor.cpp