`fatal` should only be used for malformed inputs according to ErrorHandler.h; `error` is more appropriate for missing arguments, accompanied by a check to bail out early in case of the error. Some tests need to be adjusted accordingly. Makes `lld/test/MachO/arch.s` pass with `LLD_IN_TEST=2`. Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D112879
7 lines
265 B
Plaintext
7 lines
265 B
Plaintext
# RUN: %lld --version | FileCheck -check-prefix=VERSION %s
|
|
VERSION: LLD
|
|
|
|
# RUN: not %lld ---help 2>&1 | FileCheck -check-prefix=SPELLHELP %s
|
|
SPELLHELP: error: unknown argument '---help', did you mean '--help'
|
|
# FIXME: We should also output a "no input files" error
|