================
@@ -6844,6 +6844,72 @@ When ``#pragma comment(copyright, ...)`` appears in a 
C++20 module interface
 unit, the copyright string is embedded only in the object file compiled from
 that interface unit. Importing TUs do not re-emit the string.
 
+Preserving Identifying Variables with -mloadtime-comment-vars
+--------------------------------------------------------------
+
+The ``-mloadtime-comment-vars=`` flag accepts a comma-separated list of
+global variable names that should be preserved in the final object file as
----------------
w2yehia wrote:

the original approach where you saved the names in the metadata would have 
required you to assume the user specified variable name is mangled, since in 
the IR the variable names are mangled already.
In this new approach where you lookup the variable's name during IR codegen, 
the name is not mangled yet I presume. I have another suggestion that might 
have an impact.

https://github.com/llvm/llvm-project/pull/187986
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to