diff options
author | Calixte Denizet <cdenizet@mozilla.com> | 2018-09-21 09:17:06 +0000 |
---|---|---|
committer | Calixte Denizet <cdenizet@mozilla.com> | 2018-09-21 09:17:06 +0000 |
commit | 5713db4c4af8261b5306e1a6eb1a60625d8b4cc7 (patch) | |
tree | 758f0b0ecea16f07d1cffd9ab41a0045fe34b0e1 /clang/test/CodeGenCXX/linetable-virtual-variadic.cpp | |
parent | eaf601ab7a1a994da6a25c4dcae4da3ea59a93e6 (diff) | |
download | bcm5719-llvm-5713db4c4af8261b5306e1a6eb1a60625d8b4cc7.tar.gz bcm5719-llvm-5713db4c4af8261b5306e1a6eb1a60625d8b4cc7.zip |
[CodeGen] Add to emitted DebugLoc information about coverage when it's required
Summary:
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
Reviewers: marco-c, davidxl
Reviewed By: marco-c
Subscribers: dblaikie, cfe-commits, sylvestre.ledru
Differential Revision: https://reviews.llvm.org/D49916
llvm-svn: 342717
Diffstat (limited to 'clang/test/CodeGenCXX/linetable-virtual-variadic.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/linetable-virtual-variadic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/linetable-virtual-variadic.cpp b/clang/test/CodeGenCXX/linetable-virtual-variadic.cpp index 60dee5fe61b..154ee300b74 100644 --- a/clang/test/CodeGenCXX/linetable-virtual-variadic.cpp +++ b/clang/test/CodeGenCXX/linetable-virtual-variadic.cpp @@ -17,6 +17,6 @@ void Derived::VariadicFunction(...) { } // CHECK: ret void, !dbg ![[LOC_I:[0-9]+]] // // CHECK: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction" -// CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]]) +// CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]], isImplicitCode: true) // CHECK: ![[SP_I]] = distinct !DISubprogram(name: "VariadicFunction" -// CHECK: ![[LOC_I]] = !DILocation({{.*}}scope: ![[SP_I]]) +// CHECK: ![[LOC_I]] = !DILocation({{.*}}scope: ![[SP_I]], isImplicitCode: true) |