Skip to content

Commit

Permalink
[Driver][PS5] Simplify a condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pogo59 committed Aug 22, 2023
1 parent e817445 commit 0d592c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clang/lib/Driver/ToolChains/PS4CPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,12 @@ void tools::PScpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
const bool UseJMC =
Args.hasFlag(options::OPT_fjmc, options::OPT_fno_jmc, false);
const bool IsPS4 = TC.getTriple().isPS4();
const bool IsPS5 = TC.getTriple().isPS5();
assert(IsPS4 || IsPS5);

const char *PS4LTOArgs = "";
auto AddCodeGenFlag = [&](Twine Flag) {
if (IsPS4)
PS4LTOArgs = Args.MakeArgString(Twine(PS4LTOArgs) + " " + Flag);
else if (IsPS5)
else
CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=") + Flag));
};

Expand Down

0 comments on commit 0d592c8

Please sign in to comment.