[lld] e385779 - [lld-macho] Fix -bitcode_process_mode arg type

Keith Smiley via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 20:59:39 PDT 2022


Author: Keith Smiley
Date: 2022-07-26T20:58:17-07:00
New Revision: e3857791a7af9999c09060e8360e3c45fde8e984

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

LOG: [lld-macho] Fix -bitcode_process_mode 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/D130606

Added: 
    

Modified: 
    lld/MachO/Options.td

Removed: 
    


################################################################################
diff  --git a/lld/MachO/Options.td b/lld/MachO/Options.td
index b70dc86f326ac..064862fb1bb01 100644
--- a/lld/MachO/Options.td
+++ b/lld/MachO/Options.td
@@ -1182,7 +1182,7 @@ def allow_simulator_linking_to_macosx_dylibs : Flag<["-"], "allow_simulator_link
     HelpText<"This option is undocumented in ld64">,
     Flags<[HelpHidden]>,
     Group<grp_undocumented>;
-def bitcode_process_mode : Flag<["-"], "bitcode_process_mode">,
+def bitcode_process_mode : Separate<["-"], "bitcode_process_mode">,
     HelpText<"This option is undocumented in ld64">,
     Flags<[HelpHidden]>,
     Group<grp_undocumented>;


        


More information about the llvm-commits mailing list