[clang] [llvm] [PowerPC][AIX] Support #pragma comment copyright for AIX (PR #178184)
Hubert Tong via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 19:08:15 PDT 2026
================
@@ -3572,6 +3574,47 @@ 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 a
+/// loadable program-data section of the object file for inclusion in the linked
+/// module.
+///
+/// Example: #pragma comment(copyright, "Copyright string")
+///
+/// Only one copyright pragma is allowed per translation unit. Subsequent
+/// pragmas in the same TU are ignored with a warning at the parse level.
+void CodeGenModule::ProcessPragmaComment(PragmaMSCommentKind Kind,
+ StringRef Comment,
+ bool isFromASTFile) {
+ // Ensure we are only processing Copyright Pragmas
----------------
hubert-reinterpretcast wrote:
Same comment (use English prose) [assisted by IBM Bob].
Missing period at end of sentence.
https://github.com/llvm/llvm-project/pull/178184
More information about the llvm-commits
mailing list