Move to llvm-readobj code that is only used there.
[oota-llvm.git] / tools / llvm-readobj / llvm-readobj.cpp
index db0ffd0141a861d141b7edf4fa6446a2fdcd4b2f..93fa01c2aa238d255925e423a140f4bde3a09516 100644 (file)
@@ -191,7 +191,7 @@ namespace opts {
 namespace llvm {
 
 void reportError(Twine Msg) {
-  outs() << Msg << "\n";
+  outs() << "\nError reading file: " << Msg << ".\n";
   outs().flush();
   exit(1);
 }
@@ -200,7 +200,7 @@ void error(std::error_code EC) {
   if (!EC)
     return;
 
-  reportError(Twine("\nError reading file: ") + EC.message() + ".");
+  reportError(EC.message());
 }
 
 bool relocAddressLess(RelocationRef a, RelocationRef b) {