diff options
author | Philip Reames <preames@rivosinc.com> | 2023-12-06 14:13:29 -0800 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2023-12-06 14:20:36 -0800 |
commit | a93cacf9b08f0780f2ae2832da10a9a841ae7d03 (patch) | |
tree | 43fdaad7fbbc493e9bf8217454a51cc4d51956cc /clang/lib/Driver/Driver.cpp | |
parent | 533a0856bff75c395deacadf98df8b83c72d55e4 (diff) | |
download | llvm-a93cacf9b08f0780f2ae2832da10a9a841ae7d03.zip llvm-a93cacf9b08f0780f2ae2832da10a9a841ae7d03.tar.gz llvm-a93cacf9b08f0780f2ae2832da10a9a841ae7d03.tar.bz2 |
[clang driver] Remove a bit of redundant flang specific code [nfc]
getOptionVisibilityMask already returns options::FlangOption in FlangMode,
so this assignment is entirely pointless.
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 6f5ff81..e241706 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1940,12 +1940,6 @@ int Driver::ExecuteCompilation( void Driver::PrintHelp(bool ShowHidden) const { llvm::opt::Visibility VisibilityMask = getOptionVisibilityMask(); - // TODO: We're overriding the mask for flang here to keep this NFC for the - // option refactoring, but what we really need to do is annotate the flags - // that Flang uses. - if (IsFlangMode()) - VisibilityMask = llvm::opt::Visibility(options::FlangOption); - std::string Usage = llvm::formatv("{0} [options] file...", Name).str(); getOpts().printHelp(llvm::outs(), Usage.c_str(), DriverTitle.c_str(), ShowHidden, /*ShowAllAliases=*/false, |