mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
llvm-cov: Move some reader debug output out of the tool.
This debug output is really for testing CoverageMappingReader, not the llvm-cov tool. Move it to where it can be more useful. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218183 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -381,17 +381,6 @@ bool CodeCoverageTool::load() {
|
||||
bool RegionError = false;
|
||||
CounterMappingContext Ctx(I.Expressions, Counts);
|
||||
for (const auto &R : I.MappingRegions) {
|
||||
// Compute the values of mapped regions
|
||||
if (ViewOpts.Debug) {
|
||||
errs() << "File " << R.FileID << "| " << R.LineStart << ":"
|
||||
<< R.ColumnStart << " -> " << R.LineEnd << ":" << R.ColumnEnd
|
||||
<< " = ";
|
||||
Ctx.dump(R.Count);
|
||||
if (R.Kind == CounterMappingRegion::ExpansionRegion) {
|
||||
errs() << " (Expanded file id = " << R.ExpandedFileID << ") ";
|
||||
}
|
||||
errs() << "\n";
|
||||
}
|
||||
ErrorOr<int64_t> ExecutionCount = Ctx.evaluate(R.Count);
|
||||
if (ExecutionCount) {
|
||||
Function.CountedRegions.push_back(CountedRegion(R, *ExecutionCount));
|
||||
|
Reference in New Issue
Block a user