[PATCH] D32144: [Coverage] Don't emit mappings for functions in dependent contexts (fixes PR32679)

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 18 01:46:20 PDT 2017


arphaman accepted this revision.
arphaman added a comment.
This revision is now accepted and ready to land.

I agree with Adam, the old check is now redundant.

LGTM after removing it.



================
Comment at: test/CoverageMapping/pr32679.cpp:2
+// RUN: %clang_cc1 -cc1 -triple i686-pc-windows-msvc19.0.0 -emit-obj -fprofile-instrument=clang -std=c++14 -fdelayed-template-parsing -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name pr32679.cpp -o - %s | FileCheck %s -check-prefix=MSABI -implicit-check-not=f2
+// RUN: %clang_cc1 -cc1 -triple %itanium_abi_triple -emit-obj -fprofile-instrument=clang -std=c++14 -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name pr32679.cpp -o - %s | FileCheck %s -check-prefix=ITANIUM -implicit-check-not=f2
+
----------------
Interesting, I didn't know about `-implicit-check-not`. Looks useful though.


https://reviews.llvm.org/D32144





More information about the cfe-commits mailing list