[clang] [lld] [llvm] [LTO] Make stack usage files work with LTO (PR #178005)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 27 09:38:12 PST 2026


================
@@ -106,6 +106,11 @@ static cl::opt<std::string>
     LTOStatsFile("lto-stats-file",
                  cl::desc("Save statistics to the specified file"), cl::Hidden);
 
+cl::opt<std::string>
+    LTOStackUsageOutput("lto-stack-usage-output",
----------------
MaskRay wrote:

Perhaps we should just use a `cl::opt` option. Then all lld ports can use `-mllvm -optionname` instead of adding the option to every port.

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


More information about the cfe-commits mailing list