[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
This commit is contained in:
Nico Weber 2021-03-01 14:45:17 -05:00
parent fd64580f74
commit bacacb9d5c
1 changed files with 3 additions and 1 deletions

View File

@ -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));