diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-27 18:38:38 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-27 18:38:38 +0000 |
commit | 4fed3f47f6b9e31d603c5c2d1f6d8ec2e1241e57 (patch) | |
tree | ab4ae9d7fb8680b1c9633cc71c00fea57210b705 /include/clang/Frontend/PCHBitCodes.h | |
parent | 8e03444e924665d4d90f5cfc0624c815256e0309 (diff) |
Implement caching of stat() calls for precompiled headers, which is
essentially the same thing we do with pretokenized headers. stat()
caching improves performance of the Cocoa-prefixed "Hello, World" by
45%.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PCHBitCodes.h')
-rw-r--r-- | include/clang/Frontend/PCHBitCodes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Frontend/PCHBitCodes.h b/include/clang/Frontend/PCHBitCodes.h index 436a265a41..f2aed97893 100644 --- a/include/clang/Frontend/PCHBitCodes.h +++ b/include/clang/Frontend/PCHBitCodes.h @@ -185,7 +185,10 @@ namespace clang { /// This set contains the source location entry for the /// predefines buffer and for any file entries that need to be /// preloaded. - SOURCE_LOCATION_PRELOADS = 16 + SOURCE_LOCATION_PRELOADS = 16, + + /// \brief Record code for the stat() cache. + STAT_CACHE = 17 }; /// \brief Record types used within a source manager block. |