summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-08-05 07:18:31 +0000
committerDavide Italiano <davide@freebsd.org>2015-08-05 07:18:31 +0000
commitccd53feee28e1da37a40a25f1638fd0af595f0dc (patch)
treeedf486f8dfac285866d7c23eb1afce8f73e1b1b7 /llvm/lib
parent650d7f7dd50d0941da22b33aedfb5c4ab9573b34 (diff)
downloadbcm5719-llvm-ccd53feee28e1da37a40a25f1638fd0af595f0dc.tar.gz
bcm5719-llvm-ccd53feee28e1da37a40a25f1638fd0af595f0dc.zip
[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
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud