[clang] [llvm] [Clang][AIX] Add -mloadtime-comment-vars flag to preserve identifying variables (PR #187986)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 28 16:56:44 PDT 2026
================
@@ -4193,6 +4194,15 @@ class Sema final : public SemaBase {
/// FinalizeDeclaration - called by ParseDeclarationAfterDeclarator to perform
/// any semantic actions necessary after any initializer has been attached.
void FinalizeDeclaration(Decl *D);
+
+ /// Process a variable definition against '-mloadtime-comment-vars='.
+ /// Exposed for instantiated variable definitions, which do not pass
+ /// through FinalizeDeclaration.
+ void ProcessLoadTimeCommentVar(VarDecl *VD);
+ /// Lazily created mangler for '-mloadtime-comment-vars=' name matching. Only
----------------
hubert-reinterpretcast wrote:
Minor nit: Insert blank line to separate the declarations (with their comments).
```suggestion
void ProcessLoadTimeCommentVar(VarDecl *VD);
/// Lazily created mangler for '-mloadtime-comment-vars=' name matching. Only
```
https://github.com/llvm/llvm-project/pull/187986
More information about the cfe-commits
mailing list