diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-09-15 22:23:29 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-09-15 22:23:29 +0000 |
| commit | 92bb302314b7074b1ccdff4857a2657baa5f9b3f (patch) | |
| tree | 5b647bc6358cdf88b5924ab8bc7638ef787f91eb /llvm/tools/llvm-cov/CodeCoverage.cpp | |
| parent | 8dee57a75ddb44842777fb8def914efc15387894 (diff) | |
| download | llvm-92bb302314b7074b1ccdff4857a2657baa5f9b3f.zip llvm-92bb302314b7074b1ccdff4857a2657baa5f9b3f.tar.gz llvm-92bb302314b7074b1ccdff4857a2657baa5f9b3f.tar.bz2 | |
llvm-cov: Make debug output more consistent
This changes the debug output of the llvm-cov tool to consistently
write to stderr, and moves the highlighting output closer to where
it's relevant.
llvm-svn: 217838
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
| -rw-r--r-- | llvm/tools/llvm-cov/CodeCoverage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index 79a596d..f3587c7 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -273,7 +273,7 @@ void CodeCoverageTool::createExpansionSubView( auto ExpandedLines = findExpandedFileInterestingLineRange( ExpandedRegion.ExpandedFileID, Function); if (ViewOpts.Debug) - llvm::outs() << "Expansion of " << ExpandedRegion.ExpandedFileID << ":" + llvm::errs() << "Expansion of " << ExpandedRegion.ExpandedFileID << ":" << ExpandedLines.first << " -> " << ExpandedLines.second << " @ " << ExpandedRegion.FileID << ", " << ExpandedRegion.LineStart << ":" @@ -397,14 +397,14 @@ bool CodeCoverageTool::load() { for (const auto &R : I.MappingRegions) { // Compute the values of mapped regions if (ViewOpts.Debug) { - outs() << "File " << R.FileID << "| " << R.LineStart << ":" + errs() << "File " << R.FileID << "| " << R.LineStart << ":" << R.ColumnStart << " -> " << R.LineEnd << ":" << R.ColumnEnd << " = "; Ctx.dump(R.Count); if (R.Kind == CounterMappingRegion::ExpansionRegion) { - outs() << " (Expanded file id = " << R.ExpandedFileID << ") "; + errs() << " (Expanded file id = " << R.ExpandedFileID << ") "; } - outs() << "\n"; + errs() << "\n"; } ErrorOr<int64_t> ExecutionCount = Ctx.evaluate(R.Count); if (ExecutionCount) { |
