================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits