[clang] [llvm] [PowerPC][AIX] Support #pragma comment copyright for AIX (PR #178184)

Tony Varghese via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 23:08:06 PST 2026


================
@@ -7712,6 +7743,12 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
     case PCK_Lib:
         AddDependentLib(PCD->getArg());
       break;
+    case PCK_Copyright:
+      // Skip pragmas deserialized from modules/PCHs. Process the pragma comment
+      // only if it originated in this TU and the target OS is AIX.
+      if (!PCD->isFromASTFile() && getTriple().isOSAIX())
+        ProcessPragmaComment(PCD->getCommentKind(), PCD->getArg());
----------------
tonykuttai wrote:

moved this logic into the `ProcessPragmaComment` function. added assert for aix check inside the function.

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


More information about the llvm-commits mailing list