Some lines have a hit counter where they should not have one.
Cleanup stuff is located to the last line of the body which is most of the time a '}'.
And Exception stuff is added at the beginning of a function and at the end (represented by '{' and '}').
So in such cases, the DebugLoc used in GCOVProfiling.cpp must be marked as not covered.
This patch is a followup of https://reviews.llvm.org/D49915.
Tests in projects/compiler_rt are fixed by: https://reviews.llvm.org/D49917
Details
Details
- Reviewers
marco-c davidxl - Commits
- rG5713db4c4af8: [CodeGen] Add to emitted DebugLoc information about coverage when it's required
rL342717: [CodeGen] Add to emitted DebugLoc information about coverage when it's required
rC342717: [CodeGen] Add to emitted DebugLoc information about coverage when it's required
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 20786 Build 20786: arc lint + arc unit
Event Timeline
Comment Actions
- Use ImplicitCode instead of Covered
- Set Artificial location as ImplicitCode to avoid coverage on landing pads
Comment Actions
- Add some ImplicitCode when there is some stuff at the end of a function
- Fix the tests
Comment Actions
- only put an ImplicitCode for EmitLandingPad
- fix tests (were broken with clanf-format-diff)