forked from OSchip/llvm-project
[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:
parent
fd64580f74
commit
bacacb9d5c
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue