[PATCH] D97715: [lld/mac] Prefix errors with "ld64.lld" instead of just "lld"
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 1 11:46:34 PST 2021
thakis created this revision.
thakis added a reviewer: lld-macho.
Herald added a reviewer: int3.
Herald added a project: lld-macho.
thakis requested review of this revision.
Matches the ELF and COFF ports, which use ld.lld and lld-link, respectively.
While here, also move up `cleanupCallback` to match ELF / COFF.
https://reviews.llvm.org/D97715
Files:
lld/MachO/Driver.cpp
Index: lld/MachO/Driver.cpp
===================================================================
--- lld/MachO/Driver.cpp
+++ lld/MachO/Driver.cpp
@@ -712,10 +712,12 @@
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));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97715.327221.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210301/a17601ea/attachment.bin>
More information about the llvm-commits
mailing list