================
@@ -660,6 +660,15 @@ void darwin::Linker::ConstructJob(Compilation &C, const 
JobAction &JA,
     CmdArgs.push_back(Args.MakeArgString("-lto-stats-file=" + 
StatsFile.str()));
   }
 
+  // Set up stack usage file path.
+  if (Args.hasArg(options::OPT_fstack_usage)) {
+    SmallString<128> StackUsageFile(Output.getFilename());
+    llvm::sys::path::replace_extension(StackUsageFile, "su");
----------------
citymarina wrote:

It's what the existing code does in the non-LTO case: 
https://github.com/llvm/llvm-project/blob/92c26bb1a57b5f8682b0fb21b8acfc32951cb67e/clang/lib/Driver/ToolChains/Clang.cpp#L6515-L6525

https://github.com/llvm/llvm-project/pull/178005
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to