HomePhabricator

Use the VFS from the CompilerInvocation by default

Authored by teemperor on Sep 12 2017, 9:54 AM.

Description

Use the VFS from the CompilerInvocation by default

Summary:
The CompilerInstance should create its default VFS from its CompilerInvocation. Right now the
user has to manually create the VFS before creating the FileManager even though
-ivfsoverlay file.yaml was passed via the CompilerInvocation (which is exactly how we worked
around this issue in FrontendAction.cpp so far).

This patch uses the invocation's VFS by default and also tests this behavior now from the
point of view of a program that uses the clang API.

Reviewers: benlangmuir, v.g.vassilev

Reviewed By: v.g.vassilev

Subscribers: mgorny, cfe-commits, v.g.vassilev

Differential Revision: https://reviews.llvm.org/D37416

llvm-svn: 313049

Details

Committed
teemperorSep 12 2017, 9:54 AM
Reviewer
v.g.vassilev
Differential Revision
D37416: Use the VFS from the CompilerInvocation by default
Parents
rG4d5601608dcc: Simplify handling of predefined symbols.
Branches
Unknown
Tags
Unknown