summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/FileSystemStatCache.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-23 19:38:22 +0000
committerChris Lattner <sabre@nondot.org>2010-11-23 19:38:22 +0000
commitb3c814538bb664448027cfc96b9c6073012d6352 (patch)
tree9cd8c9c5840434ca39ce6770677c0dec7b14afa5 /clang/lib/Basic/FileSystemStatCache.cpp
parent2a6fa47b266f090af059a8a5076a590840b5f0c4 (diff)
downloadbcm5719-llvm-b3c814538bb664448027cfc96b9c6073012d6352.tar.gz
bcm5719-llvm-b3c814538bb664448027cfc96b9c6073012d6352.zip
r120013 dropped passing in the precomputed file size to
MemoryBuffer::getFile, causing us to pick up a fstat for every file. Restore the optimization. llvm-svn: 120032
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
-rw-r--r--clang/lib/Basic/FileSystemStatCache.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Basic/FileSystemStatCache.cpp b/clang/lib/Basic/FileSystemStatCache.cpp
index 3e13740caba..738af41a9ee 100644
--- a/clang/lib/Basic/FileSystemStatCache.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud