================ @@ -203,6 +203,30 @@ void Flang::AddAArch64TargetArgs(const ArgList &Args, } } +void Flang::AddPPCTargetArgs(const ArgList &Args, + ArgStringList &CmdArgs) const { + bool VecExtabi = false; + for (const Arg *A : Args.filtered(options::OPT_mabi_EQ)) { ---------------- tblah wrote:
Could the loop be simplified to something like this? ``` Arg *A = Args.getLastArg(options::OPT_mabi_EQ); if (A) { StringRef V = A->getValue(); if (V == "vec-default") { [...] } ``` https://github.com/llvm/llvm-project/pull/113215 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits