diff options
author | Ben Langmuir <blangmuir@apple.com> | 2014-02-20 21:59:23 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2014-02-20 21:59:23 +0000 |
commit | c8130a74f498c5ca3d1d6276df392bae337cf221 (patch) | |
tree | 04fd5f2ab091ffba1896562844e19ef94baddea4 /clang/lib/Lex/PTHLexer.cpp | |
parent | 37eb422f69e22490396a45cc65de93ccc75ffa2d (diff) | |
download | bcm5719-llvm-c8130a74f498c5ca3d1d6276df392bae337cf221.tar.gz bcm5719-llvm-c8130a74f498c5ca3d1d6276df392bae337cf221.zip |
Recommit virtual file system
Previously reverted in r201755 due to causing an assertion failure.
I've removed the offending assertion, and taught the CompilerInstance to
create a default virtual file system inside createFileManager. In the
future, we should be able to reach into the CompilerInvocation to
customize this behaviour without breaking clients that don't care.
llvm-svn: 201818
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index e174222ece3..cdc5d7e3381 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/lib/Lex/PTHLexer.cpp @@ -675,13 +675,13 @@ public: ~PTHStatCache() {} LookupResult getStat(const char *Path, FileData &Data, bool isFile, - int *FileDescriptor) { + vfs::File **F, vfs::FileSystem &FS) { // Do the lookup for the file's data in the PTH file. CacheTy::iterator I = Cache.find(Path); // If we don't get a hit in the PTH file just forward to 'stat'. if (I == Cache.end()) - return statChained(Path, Data, isFile, FileDescriptor); + return statChained(Path, Data, isFile, F, FS); const PTHStatData &D = *I; |