r300382 - [Coverage] Use the new getInstrProfSectionName API (NFC)
Vedant Kumar via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 14 17:10:06 PDT 2017
Author: vedantk
Date: Fri Apr 14 19:10:05 2017
New Revision: 300382
URL: http://llvm.org/viewvc/llvm-project?rev=300382&view=rev
Log:
[Coverage] Use the new getInstrProfSectionName API (NFC)
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=300382&r1=300381&r2=300382&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp (original)
+++ cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp Fri Apr 14 19:10:05 2017
@@ -962,7 +962,9 @@ struct CounterCoverageMappingBuilder
};
std::string getCoverageSection(const CodeGenModule &CGM) {
- return llvm::getInstrProfCoverageSectionName(&CGM.getModule());
+ return llvm::getInstrProfSectionName(
+ llvm::IPSK_covmap,
+ CGM.getContext().getTargetInfo().getTriple().getObjectFormat());
}
std::string normalizeFilename(StringRef Filename) {
More information about the cfe-commits
mailing list