[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


================
@@ -701,6 +705,9 @@ class LangOptions : public LangOptionsBase {
   /// builtin because a -fno-builtin-* option has been specified?
   bool isNoBuiltinFunc(StringRef Name) const;
 
+  /// Returns true if \p MangledName is listed in -mloadtime-comment-vars=.
+  bool isLoadTimeCommentVar(StringRef MangledName) const;
+
----------------
hubert-reinterpretcast wrote:

Since `LoadTimeCommentVars` is used directly in the only caller of this accessor, I think its presence buys us nothing except unnecessary indirection.

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


More information about the cfe-commits mailing list