llvm-readobj: Handle invalid references to the string table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-07-20 03:38:17 +00:00
parent fc41ae8496
commit fa1a4b2275
5 changed files with 23 additions and 7 deletions

View File

@@ -188,14 +188,14 @@ namespace opts {
} // namespace opts
static void reportError(Twine Msg) {
namespace llvm {
void reportError(Twine Msg) {
outs() << Msg << "\n";
outs().flush();
exit(1);
}
namespace llvm {
void error(std::error_code EC) {
if (!EC)
return;