[PATCH] D87803: [lld-macho] Ignore `-mllvm` and its argument

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 16:08:13 PDT 2020


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added subscribers: llvm-commits, dang.
Herald added a project: LLVM.
int3 requested review of this revision.

Test Plan:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87803

Files:
  lld/MachO/Options.td
  lld/test/MachO/silent-ignore.test


Index: lld/test/MachO/silent-ignore.test
===================================================================
--- lld/test/MachO/silent-ignore.test
+++ lld/test/MachO/silent-ignore.test
@@ -6,6 +6,6 @@
 RUN:   -macosx_version_min 0 \
 RUN:   -dependency_info /path/to/dependency_info.dat \
 RUN:   -objc_abi_version 2 \
-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
Index: lld/MachO/Options.td
===================================================================
--- lld/MachO/Options.td
+++ lld/MachO/Options.td
@@ -872,6 +872,10 @@
      HelpText<"Prevent system dylibs from being placed into the dylib shared cache">,
      Flags<[HelpHidden]>,
      Group<grp_rare>;
+def mllvm : Separate<["-"], "mllvm">,
+     HelpText<"Options to pass to LLVM">,
+     Flags<[HelpHidden]>,
+     Group<grp_rare>;
 
 def grp_deprecated : OptionGroup<"deprecated">, HelpText<"DEPRECATED">;
 
@@ -1210,10 +1214,6 @@
      HelpText<"This option is undocumented in ld64">,
      Flags<[HelpHidden]>,
      Group<grp_undocumented>;
-def mllvm : Flag<["-"], "mllvm">,
-     HelpText<"This option is undocumented in ld64">,
-     Flags<[HelpHidden]>,
-     Group<grp_undocumented>;
 def no_compact_unwind : Flag<["-"], "no_compact_unwind">,
      HelpText<"This option is undocumented in ld64">,
      Flags<[HelpHidden]>,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87803.292367.patch
Type: text/x-patch
Size: 1496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200916/e3b17b65/attachment.bin>


More information about the llvm-commits mailing list