[flang-commits] [flang] 99edb9b - [flang][driver] Fix options flag in the frontend driver
Andrzej Warzynski via flang-commits
flang-commits at lists.llvm.org
Thu Sep 24 00:44:57 PDT 2020
Author: Andrzej Warzynski
Date: 2020-09-24T08:44:26+01:00
New Revision: 99edb9b79c46706a41921c4edb1b849c1a618d26
URL: https://github.com/llvm/llvm-project/commit/99edb9b79c46706a41921c4edb1b849c1a618d26
DIFF: https://github.com/llvm/llvm-project/commit/99edb9b79c46706a41921c4edb1b849c1a618d26.diff
LOG: [flang][driver] Fix options flag in the frontend driver
In the frontend driver we should be using FC1Option (frontend driver
options) instead of FlangOption (flang driver options).
Differential Revision: https://reviews.llvm.org/D88108
Added:
Modified:
flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
Removed:
################################################################################
diff --git a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index ab773c95c85d..969979273722 100644
--- a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -22,7 +22,7 @@ bool ExecuteCompilerInvocation(CompilerInstance *flang) {
if (flang->GetFrontendOpts().showHelp_) {
clang::driver::getDriverOptTable().PrintHelp(llvm::outs(),
"flang-new -fc1 [options] file...", "LLVM 'Flang' Compiler",
- /*Include=*/clang::driver::options::FlangOption,
+ /*Include=*/clang::driver::options::FC1Option,
/*Exclude=*/0, /*ShowAllAliases=*/false);
return true;
}
More information about the flang-commits
mailing list