diff --git a/lld/MachO/Options.td b/lld/MachO/Options.td --- a/lld/MachO/Options.td +++ b/lld/MachO/Options.td @@ -857,6 +857,10 @@ HelpText<"Prevent system dylibs from being placed into the dylib shared cache">, Flags<[HelpHidden]>, Group; +def mllvm : Separate<["-"], "mllvm">, + HelpText<"Options to pass to LLVM">, + Flags<[HelpHidden]>, + Group; def grp_deprecated : OptionGroup<"deprecated">, HelpText<"DEPRECATED">; @@ -1195,10 +1199,6 @@ HelpText<"This option is undocumented in ld64">, Flags<[HelpHidden]>, Group; -def mllvm : Flag<["-"], "mllvm">, - HelpText<"This option is undocumented in ld64">, - Flags<[HelpHidden]>, - Group; def no_compact_unwind : Flag<["-"], "no_compact_unwind">, HelpText<"This option is undocumented in ld64">, Flags<[HelpHidden]>, diff --git a/lld/test/MachO/silent-ignore.test b/lld/test/MachO/silent-ignore.test --- a/lld/test/MachO/silent-ignore.test +++ b/lld/test/MachO/silent-ignore.test @@ -5,6 +5,6 @@ RUN: -lto_library /lib/foo \ RUN: -macosx_version_min 0 \ RUN: -dependency_info /path/to/dependency_info.dat \ -RUN: -syslibroot /path/to/MacOSX.platform/Developer/SDKs/MacOSX.sdk +RUN: -mllvm -time-passes RUN: not lld -flavor darwinnew -v --not-an-ignored-argument 2>&1 | FileCheck %s CHECK: error: unknown argument: --not-an-ignored-argument