[all-commits] [llvm/llvm-project] ee88b8: [compiler-rt] Add more diagnostic to InstrProfError

gulfemsavrun via All-commits all-commits at lists.llvm.org
Tue Nov 9 10:08:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee88b8d63e475a75ae525563edfa95f6fcaac83a
      https://github.com/llvm/llvm-project/commit/ee88b8d63e475a75ae525563edfa95f6fcaac83a
  Author: Gulfem Savrun Yeniceri <gulfem at google.com>
  Date:   2021-11-09 (Tue, 09 Nov 2021)

  Changed paths:
    M llvm/include/llvm/ProfileData/InstrProf.h
    M llvm/include/llvm/ProfileData/InstrProfReader.h
    M llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
    M llvm/lib/ProfileData/InstrProf.cpp
    M llvm/lib/ProfileData/InstrProfReader.cpp
    M llvm/test/tools/llvm-profdata/large-binary-id-size.test
    A llvm/test/tools/llvm-profdata/malformed-not-space-for-another-header.test
    A llvm/test/tools/llvm-profdata/malformed-num-counters-zero.test
    M llvm/test/tools/llvm-profdata/malformed-ptr-to-counter-array.test

  Log Message:
  -----------
  [compiler-rt] Add more diagnostic to InstrProfError

If profile data is malformed for any kind of reason, we generate
an error that only reports "malformed instrumentation profile data"
without any further information. This patch extends InstrProfError
class to receive an optional error message argument, so that we can
do better error reporting.

Differential Revision: https://reviews.llvm.org/D108942




More information about the All-commits mailing list