[lld] 2769ceb - [lld-macho] Fix -force_symbols_{, not_}weak_list arg type

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 07:37:04 PDT 2022


Author: Bernhard Urban-Forster
Date: 2022-09-27T10:36:40-04:00
New Revision: 2769ceb0e7a4b4f11c2bf5bd21fd69c154c17ff8

URL: https://github.com/llvm/llvm-project/commit/2769ceb0e7a4b4f11c2bf5bd21fd69c154c17ff8
DIFF: https://github.com/llvm/llvm-project/commit/2769ceb0e7a4b4f11c2bf5bd21fd69c154c17ff8.diff

LOG: [lld-macho] Fix -force_symbols_{,not_}weak_list arg type

This is still undocumented and unsupported, but if someone passed it before you
would end up with a missing file error since this takes an argument that
wouldn't be handled.

Differential Revision: https://reviews.llvm.org/D133854

Added: 
    

Modified: 
    lld/MachO/Options.td

Removed: 
    


################################################################################
diff  --git a/lld/MachO/Options.td b/lld/MachO/Options.td
index e12626c17e29d..f7e0414180a32 100644
--- a/lld/MachO/Options.td
+++ b/lld/MachO/Options.td
@@ -1246,11 +1246,11 @@ def force_symbols_coalesce_list : Flag<["-"], "force_symbols_coalesce_list">,
     HelpText<"This option is undocumented in ld64">,
     Flags<[HelpHidden]>,
     Group<grp_undocumented>;
-def force_symbols_not_weak_list : Flag<["-"], "force_symbols_not_weak_list">,
+def force_symbols_not_weak_list : Separate<["-"], "force_symbols_not_weak_list">,
     HelpText<"This option is undocumented in ld64">,
     Flags<[HelpHidden]>,
     Group<grp_undocumented>;
-def force_symbols_weak_list : Flag<["-"], "force_symbols_weak_list">,
+def force_symbols_weak_list : Separate<["-"], "force_symbols_weak_list">,
     HelpText<"This option is undocumented in ld64">,
     Flags<[HelpHidden]>,
     Group<grp_undocumented>;


        


More information about the llvm-commits mailing list