[clang] [lld] [llvm] [LTO] Make stack usage files work with LTO (PR #178005)
Marina Taylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 08:16:14 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",
----------------
citymarina wrote:
I'm not sure if I've understood your suggestion correctly, but - I tried marking the cl::opt as extern in llvm-lto2 to see if it could get picked up from LTOCodeGenerator.cpp (that ought to be in the LLVMLTO library, which llvm-lto2 depends on, right?) but it wasn't visible.
https://github.com/llvm/llvm-project/pull/178005
More information about the cfe-commits
mailing list