================
@@ -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))
----------------
sujianIBM wrote:

My understanding is without this code, I need to add check if zOS in 
clang/lib/CodeGen/CodeGenFunction.cpp.
The scenario is when users give -mno-zos-ppa1-name to clang cc1 on non-zos 
platform, we don't want to add the function attribute to IR.

https://github.com/llvm/llvm-project/pull/207416
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to