]> granicus.if.org Git - clang/commit
Don't read all of the records in the PCH file's preprocessor block,
authorDouglas Gregor <dgregor@apple.com>
Sun, 26 Apr 2009 00:07:37 +0000 (00:07 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 26 Apr 2009 00:07:37 +0000 (00:07 +0000)
commit2eafc1b56347f772729e082e6bac824b0ef1b585
tree92d68a82e05f571a0e55e132948265ceb2361454
parent7c32f8e9be486f8f8ec2e75eba36903f7cb1b73a
Don't read all of the records in the PCH file's preprocessor block,
most of which are ignored. Instead, move the __COUNTER__ value out to
a PCH-level record (since it is handled eagerly) and move the header
file information into the SourceManager block (which is also,
currently, loaded eagerly).

This results in another 17% performance improvement in the
Cocoa-prefixed "Hello, World" with PCH.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70097 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/PCHBitCodes.h
include/clang/Frontend/PCHReader.h
include/clang/Frontend/PCHWriter.h
lib/Frontend/PCHReader.cpp
lib/Frontend/PCHWriter.cpp