mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
PR22575 occurred because we were unsafely storing references into a std::vector. If the vector moved because it grew, we'd be left iterating through garbage memory. This avoids the issue by simplifying the logic to gather coverage information as we go, rather than storing it and iterating over it. I'm relying on the existing tests showing that this is semantically NFC, since it's difficult to hit the issue this fixes without relatively large covered programs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229215 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
246 B
CMake
13 lines
246 B
CMake
set(LLVM_LINK_COMPONENTS core support object profiledata)
|
|
|
|
add_llvm_tool(llvm-cov
|
|
llvm-cov.cpp
|
|
gcov.cpp
|
|
CodeCoverage.cpp
|
|
CoverageFilters.cpp
|
|
CoverageReport.cpp
|
|
CoverageSummaryInfo.cpp
|
|
SourceCoverageView.cpp
|
|
TestingSupport.cpp
|
|
)
|