]> granicus.if.org Git - clang/commit
Add lightweight shim "clang::StatSysCallCache" that caches 'stat' system calls
authorTed Kremenek <kremenek@apple.com>
Thu, 12 Feb 2009 00:39:05 +0000 (00:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 12 Feb 2009 00:39:05 +0000 (00:39 +0000)
commitfc7052d4a241ee6fc70afea7c1c9560147f0a49c
tree52ea40cc7c5c28d06dfb3ef50f0cb516acacca39
parentb7b5d13de34272b31681e7eafa9851e39bde2ef9
Add lightweight shim "clang::StatSysCallCache" that caches 'stat' system calls
for use by FileManager. FileManager now takes a StatSysCallCache* in its
constructor (which defaults to NULL). This will be used for evaluating whether
or not caching 'stat' system calls in PTH is a performance win. This shim adds
no observable performance impact in the case where the 'StatSysCallCache*' is
null.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64345 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/FileManager.h
lib/Basic/FileManager.cpp