diff options
author | Shoaib Meenai <smeenai@fb.com> | 2021-10-30 16:45:06 -0700 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2021-10-31 16:31:21 -0700 |
commit | 264d3b6d4e08401c5b50a85bd76e80b3461d77e6 (patch) | |
tree | 9116eb2220eacb696f55202ba0e00b72e1a4400c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 0cf624cad7a0afbac638835cba279dd42adcc39d (diff) | |
download | llvm-264d3b6d4e08401c5b50a85bd76e80b3461d77e6.zip llvm-264d3b6d4e08401c5b50a85bd76e80b3461d77e6.tar.gz llvm-264d3b6d4e08401c5b50a85bd76e80b3461d77e6.tar.bz2 |
[MachO] Use error instead of fatal for missing -arch
`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
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions