InstrProf: Always emit a coverage region for the condition of an if
When tools like llvm-cov show regions, it's much easier to understand what's happening if the condition of an if shows a counter as well as the body. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229813 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/CoverageMappingGen.cpp 4 additions, 1 deletionlib/CodeGen/CoverageMappingGen.cpp
- test/CoverageMapping/break.c 5 additions, 3 deletionstest/CoverageMapping/break.c
- test/CoverageMapping/continue.c 3 additions, 3 deletionstest/CoverageMapping/continue.c
- test/CoverageMapping/if.c 5 additions, 1 deletiontest/CoverageMapping/if.c
- test/CoverageMapping/includehell.cpp 7 additions, 0 deletionstest/CoverageMapping/includehell.cpp
- test/CoverageMapping/label.cpp 12 additions, 10 deletionstest/CoverageMapping/label.cpp
- test/CoverageMapping/macro-expansion.c 12 additions, 8 deletionstest/CoverageMapping/macro-expansion.c
- test/CoverageMapping/macro-expressions.cpp 1 addition, 0 deletionstest/CoverageMapping/macro-expressions.cpp
- test/CoverageMapping/macroscopes.cpp 4 additions, 0 deletionstest/CoverageMapping/macroscopes.cpp
- test/CoverageMapping/moremacros.c 7 additions, 3 deletionstest/CoverageMapping/moremacros.c
- test/CoverageMapping/objc.m 4 additions, 3 deletionstest/CoverageMapping/objc.m
- test/CoverageMapping/preprocessor.c 2 additions, 1 deletiontest/CoverageMapping/preprocessor.c
- test/CoverageMapping/return.c 7 additions, 4 deletionstest/CoverageMapping/return.c
- test/CoverageMapping/switchmacro.c 1 addition, 1 deletiontest/CoverageMapping/switchmacro.c
- test/CoverageMapping/test.c 2 additions, 1 deletiontest/CoverageMapping/test.c
- test/CoverageMapping/trycatch.cpp 4 additions, 3 deletionstest/CoverageMapping/trycatch.cpp
Loading
Please register or sign in to comment