Browse Source

[Profile] PE binary coverage bug fix

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
Xinliang David Li 8 years ago
parent
commit
07178d535b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/CodeGen/CoverageMappingGen.cpp

+ 1 - 1
lib/CodeGen/CoverageMappingGen.cpp

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