Skip to content

Commit d0a95a6

Browse files
committed
Address 2nd comments from jansvoboda11
1 parent dbab3cc commit d0a95a6

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2755,10 +2755,8 @@ void tools::addMachineOutlinerArgs(const Driver &D,
27552755
}
27562756

27572757
auto *CodeGenDataGenArg =
2758-
Args.getLastArg(options::OPT_fcodegen_data_generate,
2759-
options::OPT_fcodegen_data_generate_EQ);
2760-
auto *CodeGenDataUseArg = Args.getLastArg(options::OPT_fcodegen_data_use,
2761-
options::OPT_fcodegen_data_use_EQ);
2758+
Args.getLastArg(options::OPT_fcodegen_data_generate_EQ);
2759+
auto *CodeGenDataUseArg = Args.getLastArg(options::OPT_fcodegen_data_use_EQ);
27622760

27632761
// We only allow one of them to be specified.
27642762
if (CodeGenDataGenArg && CodeGenDataUseArg)

clang/lib/Driver/ToolChains/Darwin.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,7 @@ void darwin::Linker::AddLinkArgs(Compilation &C, const ArgList &Args,
478478
}
479479

480480
auto *CodeGenDataGenArg =
481-
Args.getLastArg(options::OPT_fcodegen_data_generate,
482-
options::OPT_fcodegen_data_generate_EQ);
481+
Args.getLastArg(options::OPT_fcodegen_data_generate_EQ);
483482
if (CodeGenDataGenArg) {
484483
SmallString<128> Path(CodeGenDataGenArg->getNumValues() == 0
485484
? ""
@@ -648,10 +647,8 @@ void darwin::Linker::ConstructJob(Compilation &C, const JobAction &JA,
648647

649648
// Propagate codegen data flags to the linker for the LLVM backend.
650649
auto *CodeGenDataGenArg =
651-
Args.getLastArg(options::OPT_fcodegen_data_generate,
652-
options::OPT_fcodegen_data_generate_EQ);
653-
auto *CodeGenDataUseArg = Args.getLastArg(options::OPT_fcodegen_data_use,
654-
options::OPT_fcodegen_data_use_EQ);
650+
Args.getLastArg(options::OPT_fcodegen_data_generate_EQ);
651+
auto *CodeGenDataUseArg = Args.getLastArg(options::OPT_fcodegen_data_use_EQ);
655652

656653
// We only allow one of them to be specified.
657654
const Driver &D = getToolChain().getDriver();

0 commit comments

Comments
 (0)