r300279 - [Profile] PE binary coverage bug fix
Xinliang David Li via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 13 16:37:22 PDT 2017
Author: davidxl
Date: Thu Apr 13 18:37:21 2017
New Revision: 300279
URL: http://llvm.org/viewvc/llvm-project?rev=300279&view=rev
Log:
[Profile] PE binary coverage bug fix
PR/32584
Differential Revision: https://reviews.llvm.org/D32023
Modified:
cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
Modified: cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp?rev=300279&r1=300278&r2=300279&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp (original)
+++ cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp Thu Apr 13 18:37:21 2017
@@ -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) {
More information about the cfe-commits
mailing list