summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PTHLexer.cpp
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2014-02-19 00:10:30 +0000
committerBen Langmuir <blangmuir@apple.com>2014-02-19 00:10:30 +0000
commit090610d37a6bc50dabac779f97e158154cbe9bd7 (patch)
tree27e4956fb03bb8ba15ac344be5da71732f241672 /clang/lib/Lex/PTHLexer.cpp
parent064eaba99ccbb90a46158b55f99c5691408091ad (diff)
downloadbcm5719-llvm-090610d37a6bc50dabac779f97e158154cbe9bd7.tar.gz
bcm5719-llvm-090610d37a6bc50dabac779f97e158154cbe9bd7.zip
Initial implementation of virtual file system
This adds the minimum virtual file system support to start migrating FileManager onto the VFS. Originally discussed here: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-February/035188.html Differential Revision: http://llvm-reviews.chandlerc.com/D2745 llvm-svn: 201618
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r--clang/lib/Lex/PTHLexer.cpp4
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;
OpenPOWER on IntegriCloud