[clang] [llvm] [PowerPC][AIX] Support #pragma comment copyright for AIX (PR #178184)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Sat May 9 09:54:40 PDT 2026
================
@@ -4092,6 +4129,18 @@ bool CodeGenModule::MustBeEmitted(const ValueDecl *Global) {
return getContext().DeclMustBeEmitted(Global);
}
+void CodeGenModule::EmitLoadTimeComment() {
+ // Emit copyright metadata for #pragma comment(copyright, ...).
+ // The LoadTimeComment is set during pragma processing and contains the
+ // copyright string that will be embedded in the .text section of the
+ // XCOFF object file and loaded into memory when the program runs.
+
----------------
hubert-reinterpretcast wrote:
IMO, everything that needs to be said is already said in the Doxygen-style comment for this function in the header.
```suggestion
```
https://github.com/llvm/llvm-project/pull/178184
More information about the cfe-commits
mailing list