mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-05 09:24:28 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217838 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user