[llvm] [LTO] Refactor LTO link optimization remarks handling using RAII (NFC) (PR #181269)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 11:00:16 PST 2026
================
@@ -427,6 +427,21 @@ class LTO {
LTOK_UnifiedThin,
};
+ /// RAII guard for optimization remarks and LTO-link diagnostics.
+ struct DiagnosticSession {
----------------
snehasish wrote:
> lld does not call global destructors during its normal shutdown (confirmed this is still the case today, see unsafeLldMain)
TIL, thanks.
https://github.com/llvm/llvm-project/pull/181269
More information about the llvm-commits
mailing list