llvm/unittests/ProfileData
Vedant Kumar 9f0d281d87 [Coverage] PR33517: Check for failure to load func records
With PR33517, it became apparent that symbol table creation can fail
when presented with malformed inputs. This patch makes that sort of
error detectable, so llvm-cov etc. can fail more gracefully.

Specifically, we now check that function records loaded from corrupted coverage
mapping data are rejected, e.g when the recorded function name is garbage.

Testing: check-{llvm,clang,profile}, some unit test updates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305767 91177308-0d34-0410-b5e6-96231b3b80d8
2017-06-20 02:05:35 +00:00
..
CMakeLists.txt
CoverageMappingTest.cpp [Coverage] PR33517: Check for failure to load func records 2017-06-20 02:05:35 +00:00
InstrProfTest.cpp [ProfileData] PR33517: Check for failure of symtab creation 2017-06-20 01:38:56 +00:00
SampleProfTest.cpp Re-sort #include lines for unittests. This uses a slightly modified 2017-06-06 11:06:56 +00:00