]> granicus.if.org Git - clang/commit
[Coverage] Do not map regions from system headers
authorVedant Kumar <vsk@apple.com>
Mon, 11 Jul 2016 22:57:46 +0000 (22:57 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 11 Jul 2016 22:57:46 +0000 (22:57 +0000)
commitf379326a64c32857768be8e92a0fadc1dfdc1c8c
tree89a8dd3b13934bdf1a95a1a64acbc4054caa377c
parenta64bed41d1a957fa037843dc544ea47d20621265
[Coverage] Do not map regions from system headers

Do not assign source regions located within system headers file ID's,
and do not construct counter mapping regions out of them.

This makes coverage reports less cluttered and less mysterious. E.g
using the "assert" macro doesn't cause assert.h to appear in reports,
and it no longer shows the "assertion failed" branch as an uncovered
region.

It also makes coverage mapping sections a bit smaller (e.g a 1%
reduction in a stage2 build of bin/llvm-as).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275121 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CoverageMappingGen.cpp
test/CoverageMapping/system_macro.c