1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/tools/llvm-objdump
Kevin Enderby a5fa1c5714 General clean up of error handling in llvm-objdump to remove its use of report_fatal_error().
No real functional change with this commit.

The problem with report_fatal_error() is it does not include the tool name
and the file name the for which the error message was generated.

Uses of report_fatal_error() were change to report_error() or error()
to get a better error and to make the code smaller and cleaner.

Also changed things like error(errorToErrorCode(SOrErr.takeError())) to
use report_error() with a file name and the llvm::Error (as well as the
ArchitectureName if available) so the error message is printed.

llvm-svn: 287163
2016-11-16 22:17:38 +00:00
..
CMakeLists.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
COFFDump.cpp [llvm-objdump] Switch to a range loop. NFCI. 2016-09-30 23:22:42 +00:00
ELFDump.cpp [ELF] Convert ELF.h to Expected<T>. 2016-11-16 05:10:28 +00:00
llvm-objdump.cpp General clean up of error handling in llvm-objdump to remove its use of report_fatal_error(). 2016-11-16 22:17:38 +00:00
llvm-objdump.h General clean up of error handling in llvm-objdump to remove its use of report_fatal_error(). 2016-11-16 22:17:38 +00:00
LLVMBuild.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
MachODump.cpp General clean up of Mach-O error handling in llvm-objdump. 2016-11-15 23:07:41 +00:00