[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 11:58:46 PDT 2026
================
@@ -2168,6 +2168,15 @@ void Clang::AddSystemZTargetArgs(const ArgList &Args,
CmdArgs.push_back("-mfloat-abi");
CmdArgs.push_back("soft");
}
+
+ if (Arg *A = Args.getLastArg(options::OPT_mzos_ppa1_name,
----------------
perry-ca wrote:
Move this code inside of the `if (Triple.isOSzOS())` block (flip the order of the if statements) and remove the code that prints the error message. Marking the option as target specific and only calling getLastArg() on z/OS will end using the existing mechanism for generating that error.
https://github.com/llvm/llvm-project/pull/207416
More information about the cfe-commits
mailing list