[PATCH] D139559: [lld/mac] Abort link immediately on invalid -undefined argument
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 05:31:19 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa41404401292: [lld/mac] Abort link immediately on invalid -undefined argument (authored by thakis).
Herald added a project: LLVM.
Changed prior to commit:
https://reviews.llvm.org/D139559?vs=480980&id=481255#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139559/new/
https://reviews.llvm.org/D139559
Files:
lld/MachO/Driver.cpp
lld/test/MachO/treat-undef-sym.s
Index: lld/test/MachO/treat-undef-sym.s
===================================================================
--- lld/test/MachO/treat-undef-sym.s
+++ lld/test/MachO/treat-undef-sym.s
@@ -43,10 +43,10 @@
# ERROR-NEXT: >>> referenced by
# INVAL-WARNING: error: '-undefined warning' only valid with '-flat_namespace'
-# INVAL-WARNING-NEXT: error: undefined symbol: _bar
+# INVAL-WARNING-NOT: error: undefined symbol: _bar
# INVAL-SUPPRESS: error: '-undefined suppress' only valid with '-flat_namespace'
-# INVAL-SUPPRESS-NEXT: error: undefined symbol: _bar
+# INVAL-SUPPRESS-NOT: error: undefined symbol: _bar
# WARNING: warning: undefined symbol: _bar
# WARNING-NEXT: >>> referenced by
Index: lld/MachO/Driver.cpp
===================================================================
--- lld/MachO/Driver.cpp
+++ lld/MachO/Driver.cpp
@@ -765,9 +765,9 @@
(treatment == UndefinedSymbolTreatment::warning ||
treatment == UndefinedSymbolTreatment::suppress)) {
if (treatment == UndefinedSymbolTreatment::warning)
- error("'-undefined warning' only valid with '-flat_namespace'");
+ fatal("'-undefined warning' only valid with '-flat_namespace'");
else
- error("'-undefined suppress' only valid with '-flat_namespace'");
+ fatal("'-undefined suppress' only valid with '-flat_namespace'");
treatment = UndefinedSymbolTreatment::error;
}
return treatment;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139559.481255.patch
Type: text/x-patch
Size: 1425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221208/12201589/attachment.bin>
More information about the llvm-commits
mailing list