================ @@ -3520,6 +3520,27 @@ def fpass_plugin_EQ : Joined<["-"], "fpass-plugin=">, MetaVarName<"<dsopath>">, HelpText<"Load pass plugin from a dynamic shared object file (only with new pass manager).">, MarshallingInfoStringVector<CodeGenOpts<"PassPlugins">>; +defm tocdata : BoolOption<"m","tocdata", + CodeGenOpts<"AllTocData">, DefaultFalse, + PosFlag<SetTrue, [], [ClangOption, CC1Option], + "All suitable variables will have the TOC data transformation applied">, + NegFlag<SetFalse, [], [ClangOption, CC1Option], + "This is the default. TOC data transformation is not applied to any" + "variables. Only variables specified explicitly in -mtocdata= will" + "have the TOC data transformation.">, + BothFlags<[], [ClangOption, CLOption]>>, Group<m_Group>; +def mtocdata_EQ : CommaJoined<["-"], "mtocdata=">, + Visibility<[ClangOption, CC1Option]>, + Flags<[TargetSpecific]>, ---------------- AaronHLiu wrote:
Need to remove all `Flags<[TargetSpecific]>`, otherwise will get errors in link step as follows: ``` error: unsupported option '-mtocdata' for target 'powerpc-ibm-aix7.2.0.0' ``` https://github.com/llvm/llvm-project/pull/67999 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits