aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/PCHBitCodes.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-27 18:38:38 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-27 18:38:38 +0000
commit4fed3f47f6b9e31d603c5c2d1f6d8ec2e1241e57 (patch)
treeab4ae9d7fb8680b1c9633cc71c00fea57210b705 /include/clang/Frontend/PCHBitCodes.h
parent8e03444e924665d4d90f5cfc0624c815256e0309 (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.h5
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.