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

llvm-svn: 242658
This commit is contained in:
Rafael Espindola
2015-07-20 03:38:17 +00:00
parent c46ffb7a49
commit 00ddb1416d
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;