[PATCH] D108942: [compiler-rt] Add more diagnostic to InstrProfError
Gulfem Savrun Yeniceri via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 30 13:14:40 PDT 2021
gulfem created this revision.
Herald added subscribers: hiraditya, dberris.
gulfem requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108942
Files:
llvm/include/llvm/ProfileData/InstrProf.h
llvm/include/llvm/ProfileData/InstrProfReader.h
llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
llvm/lib/ProfileData/InstrProf.cpp
llvm/lib/ProfileData/InstrProfReader.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108942.369535.patch
Type: text/x-patch
Size: 14732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210830/8f9ca1a1/attachment.bin>
More information about the llvm-commits
mailing list