diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-23 19:38:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-23 19:38:22 +0000 |
commit | f8f6129861f3972dab2c5a6cde29711ac780a7d0 (patch) | |
tree | bd04b96ceb59c6bc705551d490d5c8eca32abd10 /lib/Basic/FileSystemStatCache.cpp | |
parent | 74e976ba4b0d407bb798ea26476f618e256fc8c7 (diff) |
r120013 dropped passing in the precomputed file size to
MemoryBuffer::getFile, causing us to pick up a fstat for
every file. Restore the optimization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
-rw-r--r-- | lib/Basic/FileSystemStatCache.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Basic/FileSystemStatCache.cpp b/lib/Basic/FileSystemStatCache.cpp index 3e13740cab..738af41a9e 100644 --- a/lib/Basic/FileSystemStatCache.cpp +++ b/lib/Basic/FileSystemStatCache.cpp @@ -24,7 +24,6 @@ MemorizeStatCalls::getStat(const char *Path, struct stat &StatBuf) { if (Result == CacheMiss) Result = ::stat(Path, &StatBuf) ? CacheHitMissing : CacheHitExists; - // Do not cache failed stats, it is easy to construct common inconsistent // situations if we do, and they are not important for PCH performance (which // currently only needs the stats to construct the initial FileManager |