diff options
author | Vedant Kumar <vsk@apple.com> | 2016-07-11 22:57:46 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-07-11 22:57:46 +0000 |
commit | f379326a64c32857768be8e92a0fadc1dfdc1c8c (patch) | |
tree | 89a8dd3b13934bdf1a95a1a64acbc4054caa377c /test/CoverageMapping | |
parent | a64bed41d1a957fa037843dc544ea47d20621265 (diff) |
[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
Diffstat (limited to 'test/CoverageMapping')
-rw-r--r-- | test/CoverageMapping/system_macro.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CoverageMapping/system_macro.c b/test/CoverageMapping/system_macro.c index f199612f8d..bddc822b0d 100644 --- a/test/CoverageMapping/system_macro.c +++ b/test/CoverageMapping/system_macro.c @@ -13,9 +13,8 @@ // CHECK-LABEL: doSomething: void doSomething(int x) { // CHECK: File 0, [[@LINE]]:25 -> {{[0-9:]+}} = #0 - Func(x); // CHECK: Expansion,File 0, [[@LINE]]:3 -> [[@LINE]]:7 + Func(x); return; - // CHECK: Expansion,File 0, [[@LINE+1]]:3 -> [[@LINE+1]]:11 SomeType *f; // CHECK: File 0, [[@LINE]]:11 -> {{[0-9:]+}} = 0 } |