[Profile] PE binary coverage bug fix

PR/32584

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

llvm-svn: 300279
This commit is contained in:
Xinliang David Li 2017-04-13 23:37:21 +00:00
parent 3bb31c8c49
commit f0e879dffd
1 changed files with 1 additions and 1 deletions

View 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) {