llvm-project/llvm/tools/llvm-objdump
Davide Italiano ccd53feee2 [llvm-objdump] Call exit(1) on error, i.e. fail early.
Previously we kept going on partly corrupted input, which might result
in garbage being printed, or even worse, random crashes.
Rafael mentioned that this is the GNU behavior as well, but after some
discussion we both agreed it's probably better to emit a reasonable
error message and exit. As a side-effect of this commit, now we don't
rely on global state for error codes anymore. objdump was the last tool
in the toolchain which needed to be converted. Hopefully the old behavior
won't sneak into the tree again.

llvm-svn: 244019
2015-08-05 07:18:31 +00:00
..
CMakeLists.txt llvm/tools/llvm-objdump/CMakeLists.txt: Update libdeps to fix r240304. 2015-06-23 00:59:12 +00:00
COFFDump.cpp [llvm-objdump] Call exit(1) on error, i.e. fail early. 2015-08-05 07:18:31 +00:00
ELFDump.cpp Simplify iterating over program headers and detect corrupt ones. 2015-07-20 13:35:33 +00:00
LLVMBuild.txt Move DebugInfo to DebugInfo/DWARF. 2015-01-30 18:07:45 +00:00
MachODump.cpp [llvm-objdump] Call exit(1) on error, i.e. fail early. 2015-08-05 07:18:31 +00:00
Makefile Move DebugInfo to DebugInfo/DWARF. 2015-01-30 18:07:45 +00:00
llvm-objdump.cpp [llvm-objdump] Call exit(1) on error, i.e. fail early. 2015-08-05 07:18:31 +00:00
llvm-objdump.h [llvm-objdump] Call exit(1) on error, i.e. fail early. 2015-08-05 07:18:31 +00:00