[llvm-size] Tidy up error messages (PR42970)
authorFangrui Song <maskray@google.com>
Mon, 14 Oct 2019 12:51:47 +0000 (12:51 +0000)
committerFangrui Song <maskray@google.com>
Mon, 14 Oct 2019 12:51:47 +0000 (12:51 +0000)
commit83e52f5e1150018329b8907bb014c77ac382d611
tree4fb2bb18e1b9295968011e48c476099adea4bb20
parent8535bed79504ffe3ed7f2de8c158a17e79e54736
[llvm-size] Tidy up error messages (PR42970)

Clean up some formatting inconsistencies in the error messages and correctly exit with non-zero in all error cases.

Differential Revision: https://reviews.llvm.org/D68906
Patch by Alex Cameron

llvm-svn: 374771
llvm/test/tools/llvm-size/invalid-input.test
llvm/test/tools/llvm-size/no-input.test
llvm/tools/llvm-size/llvm-size.cpp