diff options
author | Ben Langmuir <blangmuir@apple.com> | 2014-02-19 00:10:30 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2014-02-19 00:10:30 +0000 |
commit | 090610d37a6bc50dabac779f97e158154cbe9bd7 (patch) | |
tree | 27e4956fb03bb8ba15ac344be5da71732f241672 /clang/lib/Frontend/FrontendAction.cpp | |
parent | 064eaba99ccbb90a46158b55f99c5691408091ad (diff) | |
download | llvm-090610d37a6bc50dabac779f97e158154cbe9bd7.zip llvm-090610d37a6bc50dabac779f97e158154cbe9bd7.tar.gz llvm-090610d37a6bc50dabac779f97e158154cbe9bd7.tar.bz2 |
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/Frontend/FrontendAction.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendAction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 0baf3e5..4e04c2c 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/lib/Frontend/FrontendAction.cpp @@ -159,7 +159,6 @@ ASTConsumer* FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, return new MultiplexConsumer(Consumers); } - bool FrontendAction::BeginSourceFile(CompilerInstance &CI, const FrontendInputFile &Input) { assert(!Instance && "Already processing a source file!"); @@ -213,6 +212,8 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, } // Set up the file and source managers, if needed. + if (!CI.hasVirtualFileSystem()) + CI.createVirtualFileSystem(); if (!CI.hasFileManager()) CI.createFileManager(); if (!CI.hasSourceManager()) |