[clang] [llvm] [Clang][AIX] Add -mloadtime-comment-vars flag to preserve identifying variables (PR #187986)
Tony Varghese via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 28 02:46:39 PDT 2026
================
@@ -4389,6 +4390,116 @@ bool CodeGenModule::MayBeEmittedEagerly(const ValueDecl *Global) {
return true;
}
+/// Classify a variable whose mangled name matched the -mloadtime-comment-vars=
+/// list, deciding whether it can be preserved, must be diagnosed, or should be
+/// silently ignored.
+CodeGenModule::LoadTimeCommentVarKind
+CodeGenModule::classifyLoadTimeCommentVariable(const VarDecl *D) const {
----------------
tonykuttai wrote:
Going ahead with the implicit attribute way. it follows existing precedent for Sema-created, spelling-less attributes attached in `FinalizeDeclaration` (the `PragmaClangBSSSection` family, `DLLExportStaticLocal`).
https://github.com/llvm/llvm-project/pull/187986
More information about the cfe-commits
mailing list