]> granicus.if.org Git - clang/commitdiff
[Profile] PE binary coverage bug fix
authorXinliang David Li <davidxl@google.com>
Thu, 13 Apr 2017 23:37:21 +0000 (23:37 +0000)
committerXinliang David Li <davidxl@google.com>
Thu, 13 Apr 2017 23:37:21 +0000 (23:37 +0000)
PR/32584

Differential Revision: https://reviews.llvm.org/D32023

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300279 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CoverageMappingGen.cpp

index 5bc9e5011aa893f3967736fc736cf0bf35f3a2aa..a3fe5f88a6ebaa77dc2b83ddc99feb73f89e1fef 100644 (file)
@@ -966,7 +966,7 @@ bool isMachO(const CodeGenModule &CGM) {
 }
 
 StringRef getCoverageSection(const CodeGenModule &CGM) {
-  return llvm::getInstrProfCoverageSectionName(isMachO(CGM));
+  return llvm::getInstrProfCoverageSectionName(&CGM.getModule());
 }
 
 std::string normalizeFilename(StringRef Filename) {