Skip to content

Commit a93cacf

Browse files
committed
[clang driver] Remove a bit of redundant flang specific code [nfc]
getOptionVisibilityMask already returns options::FlangOption in FlangMode, so this assignment is entirely pointless.
1 parent 533a085 commit a93cacf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,12 +1940,6 @@ int Driver::ExecuteCompilation(
19401940
void Driver::PrintHelp(bool ShowHidden) const {
19411941
llvm::opt::Visibility VisibilityMask = getOptionVisibilityMask();
19421942

1943-
// TODO: We're overriding the mask for flang here to keep this NFC for the
1944-
// option refactoring, but what we really need to do is annotate the flags
1945-
// that Flang uses.
1946-
if (IsFlangMode())
1947-
VisibilityMask = llvm::opt::Visibility(options::FlangOption);
1948-
19491943
std::string Usage = llvm::formatv("{0} [options] file...", Name).str();
19501944
getOpts().printHelp(llvm::outs(), Usage.c_str(), DriverTitle.c_str(),
19511945
ShowHidden, /*ShowAllAliases=*/false,

0 commit comments

Comments
 (0)