Revert "Revert "[Coverage] Emit gap region between statements if first statements...
authorZequan Wu <zequanwu@google.com>
Thu, 4 Mar 2021 19:50:31 +0000 (11:50 -0800)
committerZequan Wu <zequanwu@google.com>
Thu, 4 Mar 2021 19:52:43 +0000 (11:52 -0800)
commit9783e2098800b954c55ae598a1ce5c4b93444fc0
tree656c10da58084b8ddcb04379cb6688345fd6cf54
parent0d4dadc64c4f3e072bf0410dc522e5e1f2731c01
Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements.""

Reland with update on test case ContinuousSyncmode/basic.c.

This reverts commit fe5c2c3ca682b140dd5e640e75948363b6b25ef9.
15 files changed:
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/break.c
clang/test/CoverageMapping/classtemplate.cpp
clang/test/CoverageMapping/continue.c
clang/test/CoverageMapping/coroutine.cpp
clang/test/CoverageMapping/deferred-region.cpp [deleted file]
clang/test/CoverageMapping/label.cpp
clang/test/CoverageMapping/return.c
clang/test/CoverageMapping/switch.cpp
clang/test/CoverageMapping/switchmacro.c
clang/test/CoverageMapping/terminate-statements.cpp [new file with mode: 0644]
clang/test/CoverageMapping/trycatch.cpp
clang/test/CoverageMapping/unreachable-macro.c
compiler-rt/test/profile/ContinuousSyncMode/basic.c
compiler-rt/test/profile/ContinuousSyncMode/runtime-counter-relocation.c