aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlex Brachet <abrachet@google.com>2023-02-13 17:24:40 +0000
committerAlex Brachet <abrachet@google.com>2023-02-13 17:25:45 +0000
commitdf5beebc98bbe76312e3a416d5fbc563c037923c (patch)
treea65d7e749c93ff3dab6d7b81bedc3d509d469ffe /clang/lib/Frontend/CompilerInvocation.cpp
parent176ee268f8dfb4c7f6e97fdebe76811f6e0a47c2 (diff)
downloadllvm-df5beebc98bbe76312e3a416d5fbc563c037923c.zip
llvm-df5beebc98bbe76312e3a416d5fbc563c037923c.tar.gz
llvm-df5beebc98bbe76312e3a416d5fbc563c037923c.tar.bz2
[Driver] Add --vfsoverlay flag
This flag implies `-ivfsoverlay`, and additionally passes the same argument to the linker if it supports it. At present the only linker which does is lld-link, so this functionality has only been added to the MSVC toolchain. Additionally this option has been made a CoreOption so that clang-cl can use it without `-Xclang` Differential Revision: https://reviews.llvm.org/D141808
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 86717cc..84b2345 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -3167,7 +3167,7 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args,
Opts.AddSystemHeaderPrefix(
A->getValue(), A->getOption().matches(OPT_system_header_prefix));
- for (const auto *A : Args.filtered(OPT_ivfsoverlay))
+ for (const auto *A : Args.filtered(OPT_ivfsoverlay, OPT_vfsoverlay))
Opts.AddVFSOverlayFile(A->getValue());
return Diags.getNumErrors() == NumErrorsBefore;