[clang] [PS4/PS5][Driver] Always pass LTO options to the linker (PR #100423)

Edd Dawson via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 24 15:31:08 PDT 2024


================
@@ -152,48 +152,38 @@ void tools::PS4cpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
     CmdArgs.push_back(Output.getFilename());
   }
 
-  const bool UseLTO = D.isUsingLTO();
   const bool UseJMC =
       Args.hasFlag(options::OPT_fjmc, options::OPT_fno_jmc, false);
 
+  const bool UnifiedLTO = Args.hasFlag(options::OPT_funified_lto,
----------------
playstation-edd wrote:

> This variable is only used once in both functions. You could simplify and just test for the flag in the if expression.

I have done this - thanks!



https://github.com/llvm/llvm-project/pull/100423


More information about the cfe-commits mailing list