[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 Oct 5 08:01:58 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
----------------
tonykuttai wrote:

done

https://github.com/llvm/llvm-project/pull/187986


More information about the cfe-commits mailing list