[lld] [LLD][COFF] allow saving intermediate files with /lldsavetemps (PR #115131)

Miguel A. Arroyo via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 17:12:47 PST 2024


================
@@ -2012,8 +2016,18 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
   config->ltoDebugPassManager = ltoDebugPM;
 
   // Handle /lldsavetemps
-  if (args.hasArg(OPT_lldsavetemps))
-    config->saveTemps = true;
+  if (args.hasArg(OPT_lldsavetemps)) {
+    for (const char *s : lldsaveTempsValues)
----------------
mayanez wrote:

Makes sense. Yes, I originally modeled it after the `ELF` driver trying to diverge only as necessary.

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


More information about the llvm-commits mailing list