[Coverage] Suppress creating a code region if the same area is covered by an expansio...
authorIgor Kudrin <ikudrin.dev@gmail.com>
Wed, 31 Aug 2016 07:04:16 +0000 (07:04 +0000)
committerIgor Kudrin <ikudrin.dev@gmail.com>
Wed, 31 Aug 2016 07:04:16 +0000 (07:04 +0000)
commitfc05ee344ccead77e9674bfb075077c8c3221d1f
treedc119c0e591fce9f4e822cdc796f03020486ff1a
parentf3c8a9cfbba46ba2a4024794da38343af4dcb7ea
[Coverage] Suppress creating a code region if the same area is covered by an expansion region.

In most cases these code regions are just redundant, but sometimes they
could be assigned to the counter of the parent code region instead of
the counter of the nested block.

Differential Revision: https://reviews.llvm.org/D23987

llvm-svn: 280199
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/macroception.c
clang/test/CoverageMapping/macros.c