[Coverage] Use the new getInstrProfSectionName API (NFC)

llvm-svn: 300382
This commit is contained in:
Vedant Kumar 2017-04-15 00:10:05 +00:00
parent 1a6a2b642b
commit 8a767a430d
1 changed files with 3 additions and 1 deletions

View File

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