Skip to content

Commit bacacb9

Browse files
committed
[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
1 parent fd64580 commit bacacb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lld/MachO/Driver.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,12 @@ bool macho::link(ArrayRef<const char *> argsArr, bool canExitEarly,
712712
lld::stdoutOS = &stdoutOS;
713713
lld::stderrOS = &stderrOS;
714714

715+
errorHandler().cleanupCallback = []() { freeArena(); };
716+
717+
errorHandler().logName = args::getFilenameWithoutExe(argsArr[0]);
715718
stderrOS.enable_colors(stderrOS.has_colors());
716719
// TODO: Set up error handler properly, e.g. the errorLimitExceededMsg
717720

718-
errorHandler().cleanupCallback = []() { freeArena(); };
719721

720722
MachOOptTable parser;
721723
opt::InputArgList args = parser.parse(argsArr.slice(1));

0 commit comments

Comments
 (0)