Extend stat query APIs to explicitly specify if the query is for
a file or directory, allowing just a stat call if a file descriptor is not needed. Doing just 'stat' is faster than 'open/fstat/close'. This has the effect of cutting down system time for validating the input files of a PCH. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169831 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/FileManager.h 1 addition, 1 deletioninclude/clang/Basic/FileManager.h
- include/clang/Basic/FileSystemStatCache.h 10 additions, 9 deletionsinclude/clang/Basic/FileSystemStatCache.h
- lib/Basic/FileManager.cpp 8 additions, 12 deletionslib/Basic/FileManager.cpp
- lib/Basic/FileSystemStatCache.cpp 11 additions, 9 deletionslib/Basic/FileSystemStatCache.cpp
- lib/Frontend/CacheTokens.cpp 2 additions, 2 deletionslib/Frontend/CacheTokens.cpp
- lib/Lex/PTHLexer.cpp 2 additions, 2 deletionslib/Lex/PTHLexer.cpp
- unittests/Basic/FileManagerTest.cpp 1 addition, 1 deletionunittests/Basic/FileManagerTest.cpp
Loading
Please register or sign in to comment