forked from OSchip/llvm-project
![]() When we use selective instrumentation and instrument a file that is not in the selected files list provided via -fprofile-list, we generate an empty raw profile. This leads to empty_raw_profile error when we try to read that profile. This patch fixes the issue by generating a raw profile that contains only a profile header when there are no counters and profile data. A small reproducer for the above issue: echo "src:other.cc" > code.list clang++ -O2 -fprofile-instr-generate -fcoverage-mapping -fprofile-list=code.list code.cc -o code ./code llvm-profdata show default.profraw Differential Revision: https://reviews.llvm.org/D132094 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
GCDAProfiling.c | ||
InstrProfiling.c | ||
InstrProfiling.h | ||
InstrProfilingBuffer.c | ||
InstrProfilingFile.c | ||
InstrProfilingInternal.c | ||
InstrProfilingInternal.h | ||
InstrProfilingMerge.c | ||
InstrProfilingMergeFile.c | ||
InstrProfilingNameVar.c | ||
InstrProfilingPlatformDarwin.c | ||
InstrProfilingPlatformFuchsia.c | ||
InstrProfilingPlatformLinux.c | ||
InstrProfilingPlatformOther.c | ||
InstrProfilingPlatformWindows.c | ||
InstrProfilingPort.h | ||
InstrProfilingRuntime.cpp | ||
InstrProfilingUtil.c | ||
InstrProfilingUtil.h | ||
InstrProfilingValue.c | ||
InstrProfilingVersionVar.c | ||
InstrProfilingWriter.c | ||
WindowsMMap.c | ||
WindowsMMap.h |