[lld] bacacb9 - [lld/mac] Prefix errors with "ld64.lld" instead of just "lld"
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 1 12:08:42 PST 2021
Author: Nico Weber
Date: 2021-03-01T15:08:19-05:00
New Revision: bacacb9d5c979b2c32ef76ac00acfa445187028f
URL: https://github.com/llvm/llvm-project/commit/bacacb9d5c979b2c32ef76ac00acfa445187028f
DIFF: https://github.com/llvm/llvm-project/commit/bacacb9d5c979b2c32ef76ac00acfa445187028f.diff
LOG: [lld/mac] Prefix errors with "ld64.lld" instead of just "lld"
Matches the ELF and COFF ports, which use ld.lld and lld-link, respectively.
While here, also move up `cleanupCallback` to match ELF / COFF.
Differential Revision: https://reviews.llvm.org/D97715
Added:
Modified:
lld/MachO/Driver.cpp
Removed:
################################################################################
diff --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp
index c5ae0aee7817..d3e675cbe3c9 100644
--- a/lld/MachO/Driver.cpp
+++ b/lld/MachO/Driver.cpp
@@ -712,10 +712,12 @@ bool macho::link(ArrayRef<const char *> argsArr, bool canExitEarly,
lld::stdoutOS = &stdoutOS;
lld::stderrOS = &stderrOS;
+ errorHandler().cleanupCallback = []() { freeArena(); };
+
+ errorHandler().logName = args::getFilenameWithoutExe(argsArr[0]);
stderrOS.enable_colors(stderrOS.has_colors());
// TODO: Set up error handler properly, e.g. the errorLimitExceededMsg
- errorHandler().cleanupCallback = []() { freeArena(); };
MachOOptTable parser;
opt::InputArgList args = parser.parse(argsArr.slice(1));
More information about the llvm-commits
mailing list