[all-commits] [llvm/llvm-project] cd8fe1: [llvm-cov] - Output better error message when the ...

MaggieYingYi via All-commits all-commits at lists.llvm.org
Wed Sep 6 07:02:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd8fe1dbcb7dd36f700681ced34b41993e844239
      https://github.com/llvm/llvm-project/commit/cd8fe1dbcb7dd36f700681ced34b41993e844239
  Author: MaggieYingYi <29144504+MaggieYingYi at users.noreply.github.com>
  Date:   2023-09-06 (Wed, 06 Sep 2023)

  Changed paths:
    M llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
    M llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
    M llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
    M llvm/test/tools/llvm-cov/double_dots.c
    M llvm/test/tools/llvm-cov/missing-binaries.test
    M llvm/test/tools/llvm-cov/misssing-profdata.test
    M llvm/test/tools/llvm-cov/report.cpp
    M llvm/test/tools/llvm-cov/universal-binary.c
    M llvm/test/tools/llvm-cov/warnings.h
    M llvm/tools/llvm-cov/CodeCoverage.cpp
    M llvm/unittests/ProfileData/CoverageMappingTest.cpp

  Log Message:
  -----------
  [llvm-cov] - Output better error message when the error kind is `coveragemap_error::malforme`. (#65264)

The current llvm-cov error message for kind `coveragemap_error::malforme`, just gives the issue kind without any reason for what caused the issue. This patch is aimed at improving the llvm-cov error message to help identify what caused the issue.

Reviewed By: MaskRay
Close: https://github.com/llvm/llvm-project/pull/65264




More information about the All-commits mailing list