summaryrefslogtreecommitdiffstats
path: root/llvm/tools/dsymutil/MachOUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/dsymutil/MachOUtils.cpp')
-rw-r--r--llvm/tools/dsymutil/MachOUtils.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/tools/dsymutil/MachOUtils.cpp b/llvm/tools/dsymutil/MachOUtils.cpp
index 562dd5d7998..fd963138087 100644
--- a/llvm/tools/dsymutil/MachOUtils.cpp
+++ b/llvm/tools/dsymutil/MachOUtils.cpp
@@ -10,6 +10,7 @@
#include "MachOUtils.h"
#include "BinaryHolder.h"
#include "DebugMap.h"
+#include "ErrorReporting.h"
#include "NonRelocatableStringpool.h"
#include "dsymutil.h"
#include "llvm/MC/MCAsmLayout.h"
@@ -38,7 +39,7 @@ static bool runLipo(StringRef SDKPath, SmallVectorImpl<const char *> &Args) {
Path = sys::findProgramByName("lipo");
if (!Path) {
- errs() << "error: lipo: " << Path.getError().message() << "\n";
+ error_ostream() << "lipo: " << Path.getError().message() << "\n";
return false;
}
@@ -46,7 +47,7 @@ static bool runLipo(StringRef SDKPath, SmallVectorImpl<const char *> &Args) {
int result =
sys::ExecuteAndWait(*Path, Args.data(), nullptr, {}, 0, 0, &ErrMsg);
if (result) {
- errs() << "error: lipo: " << ErrMsg << "\n";
+ error_ostream() << "lipo: " << ErrMsg << "\n";
return false;
}
@@ -63,8 +64,8 @@ bool generateUniversalBinary(SmallVectorImpl<ArchAndFilename> &ArchFiles,
StringRef From(ArchFiles.front().Path);
if (sys::fs::rename(From, OutputFileName)) {
if (std::error_code EC = sys::fs::copy_file(From, OutputFileName)) {
- errs() << "error: while copying " << From << " to " << OutputFileName
- << ": " << EC.message() << "\n";
+ error_ostream() << "while copying " << From << " to " << OutputFileName
+ << ": " << EC.message() << "\n";
return false;
}
sys::fs::remove(From);
OpenPOWER on IntegriCloud