[Coverage] Use the new getInstrProfSectionName API (NFC)
llvm-svn: 300382
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp
index 0f87f8d..a102347 100644
--- a/clang/lib/CodeGen/CoverageMappingGen.cpp
+++ b/clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -962,7 +962,9 @@
};
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) {