aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2020-12-14 10:03:18 +0100
committerJan Svoboda <jan_svoboda@apple.com>2020-12-14 10:17:23 +0100
commit16aa00b6228533890cc108bc32871f36eb116e0e (patch)
tree700002a49307aa52defb22a859876607ca939e67 /clang/lib/Frontend/CompilerInvocation.cpp
parent98a4289810ba49cea6f9a9be6d902e72f0c0d0e7 (diff)
downloadllvm-16aa00b6228533890cc108bc32871f36eb116e0e.zip
llvm-16aa00b6228533890cc108bc32871f36eb116e0e.tar.gz
llvm-16aa00b6228533890cc108bc32871f36eb116e0e.tar.bz2
[clang][cli] Port FileSystem options to new option parsing system
Depends on D84187 Reviewed By: dexonsmith Original patch by Daniel Grumberg. Differential Revision: https://reviews.llvm.org/D84188
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 3add57c..c1d5364 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1876,10 +1876,6 @@ bool clang::ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args,
return Success;
}
-static void ParseFileSystemArgs(FileSystemOptions &Opts, ArgList &Args) {
- Opts.WorkingDir = std::string(Args.getLastArgValue(OPT_working_directory));
-}
-
/// Parse the argument to the -ftest-module-file-extension
/// command-line argument.
///
@@ -3839,7 +3835,6 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res,
Success &= ParseDiagnosticArgs(Res.getDiagnosticOpts(), Args, &Diags,
/*DefaultDiagColor=*/false);
ParseCommentArgs(LangOpts.CommentOpts, Args);
- ParseFileSystemArgs(Res.getFileSystemOpts(), Args);
// FIXME: We shouldn't have to pass the DashX option around here
InputKind DashX = ParseFrontendArgs(Res.getFrontendOpts(), Args, Diags,
LangOpts.IsHeaderFile);