[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
Fri Jul 17 07:23:52 PDT 2026


================
@@ -0,0 +1,228 @@
+// C/C++ behavior of -mloadtime-comment-vars= :
+//   codegen.cpp - mangled-name matching and what gets preserved
+//   storage.cpp - storage-duration and scope diagnostics
+//   diag.c      - volatile / non-string-literal diagnostics (C)
+//   init.cpp    - constant-initialization / string-literal diagnostics (C++)
+
+// RUN: rm -rf %t && split-file %s %t
+//
+// RUN: %clang_cc1 -std=c++17 -O2 -triple powerpc64-ibm-aix \
+// RUN:   -mloadtime-comment-vars=x,_ZN1N1xE,_ZN1N1qE,_ZN1NL3ptrE,_ZN1A1xE,_ZN1B3verE,_ZN1C4infoE \
----------------
tonykuttai wrote:

done

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


More information about the cfe-commits mailing list