[PATCH] D87803: [lld-macho] Ignore `-mllvm` and its argument
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 19:27:37 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG79412d6ca772: [lld-macho] Ignore `-mllvm` and its argument (authored by int3).
Changed prior to commit:
https://reviews.llvm.org/D87803?vs=292367&id=293922#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87803/new/
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
@@ -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
Index: lld/MachO/Options.td
===================================================================
--- lld/MachO/Options.td
+++ lld/MachO/Options.td
@@ -857,6 +857,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">;
@@ -1195,10 +1199,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.293922.patch
Type: text/x-patch
Size: 1498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200924/504750b9/attachment.bin>
More information about the llvm-commits
mailing list