[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:39 PDT 2026


================
@@ -3572,6 +3574,41 @@ void CodeGenModule::AddDependentLib(StringRef Lib) {
   LinkerOptionsMetadata.push_back(llvm::MDNode::get(C, MDOpts));
 }
 
+/// Process copyright pragma and create LLVM metadata.
+/// #pragma comment(copyright, "string") embeds copyright information into the
+/// .text section of the object file as read-only data. The string is
+/// loaded into memory when the program runs and survives into the final
+/// executable or shared library.
+///
+/// Example: #pragma comment(copyright, "Copyright string")
----------------
hubert-reinterpretcast wrote:

Comment says too much.
```suggestion
```

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


More information about the cfe-commits mailing list