forked from OSchip/llvm-project
a8b8a9374a
llvm-profdata `show` and `overlap` will crash in `getFuncName` on compact binary profile. This change fixed this by switching to use `getName`. `getFuncName` is misused in llvm-profdata. As showed below, `GUIDToFuncNameMap` is only supported in compilation mode, there is no initialization in llvm-profdata. Compact profile whose MD5 is true would try to query `GUIDToFuncNameMap` then caused the crash. So fix this by switching to `getName` Reviewed By: MaskRay, wmi, wenlei, weihe, hoy Differential Revision: https://reviews.llvm.org/D87740 |
||
---|---|---|
.. | ||
Inputs | ||
c-general.test | ||
compact-sample.proftext | ||
compat.proftext | ||
count-mismatch.proftext | ||
csprof-dump.test | ||
cutoff.test | ||
gcc-gcov-sample-profile.test | ||
general.proftext | ||
hash-mismatch.proftext | ||
header-directives.test | ||
inline-samples.test | ||
input-dir.test | ||
input-filenames.test | ||
instr-remap.test | ||
invalid-profdata.test | ||
lit.local.cfg | ||
malformed-ptr-to-counter-array.test | ||
memop-size-prof.proftext | ||
merge_empty_profile.test | ||
multiple-inputs.test | ||
multiple-profdata-merge.test | ||
nocompress.test | ||
overflow-instr.test | ||
overflow-sample.test | ||
overlap.test | ||
overlap_cs.test | ||
overlap_vp.test | ||
profile-symbol-list-compress.test | ||
profile-symbol-list.test | ||
raw-32-bits-be.test | ||
raw-32-bits-le.test | ||
raw-64-bits-be.test | ||
raw-64-bits-le.test | ||
raw-magic-but-no-header.test | ||
raw-two-profiles.test | ||
roundtrip-compress.test | ||
roundtrip.test | ||
same-filename.test | ||
sample-hot-func-list.test | ||
sample-overlap.test | ||
sample-profile-basic.test | ||
sample-remap.test | ||
sample-summary.test | ||
show-instr-level.test | ||
show-prof-info.test | ||
suppl-instr-with-sample.test | ||
text-dump.test | ||
text-format-errors.test | ||
threaded-count-mismatch.test | ||
value-prof.proftext | ||
weight-instr.test | ||
weight-sample.test |