summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-cov/CodeCoverage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp
index 81e55ae5265..93496bda8a1 100644
--- a/llvm/tools/llvm-cov/CodeCoverage.cpp
+++ b/llvm/tools/llvm-cov/CodeCoverage.cpp
@@ -578,7 +578,7 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
for (const std::string &Filename : CovFilenames)
ObjectFilenames.emplace_back(Filename);
if (ObjectFilenames.empty()) {
- error("No filenames specified!");
+ errs() << "No filenames specified!\n";
::exit(1);
}
@@ -591,7 +591,7 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
break;
case CoverageViewOptions::OutputFormat::HTML:
if (UseColor == cl::BOU_FALSE)
- error("Color output cannot be disabled when generating html.");
+ errs() << "Color output cannot be disabled when generating html.\n";
ViewOpts.Colors = true;
break;
}
OpenPOWER on IntegriCloud