[clang] [llvm] [SystemZ][z/OS] Add options -m[no-]zos-ppa1-name to remove the function name in PPA1. (PR #207416)

Sean Perry via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 9 21:12:16 PDT 2026


================
@@ -2198,15 +2193,8 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
         << A->getSpelling() << T.str();
   }
 
-  if (T.isOSzOS()) {
-    if (const Arg *A =
-            Args.getLastArg(OPT_mzos_ppa1_name, OPT_mno_zos_ppa1_name)) {
-      if (A->getOption().matches(OPT_mzos_ppa1_name))
-        Opts.setZOSPPA1Name(CodeGenOptions::ZOSPPA1NameKind::Emit);
-      else
-        Opts.setZOSPPA1Name(CodeGenOptions::ZOSPPA1NameKind::NoEmit);
-    }
-  }
+  if (!T.isOSzOS() && Args.hasArg(OPT_mzos_ppa1_name, OPT_mno_zos_ppa1_name))
----------------
perry-ca wrote:

ok.  The dev manual for clang has:
```
Remember that the -cc1 command line interface is intended only for Clang
developers, meaning it does not need to mirror the driver interface, maintain
backward compatibility or be compatible with GCC.
```
We don't need to worry about that scenario.  

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


More information about the cfe-commits mailing list