From 8a767a430db78d9f65ddfe4bdce8ffc57dea2e24 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Sat, 15 Apr 2017 00:10:05 +0000 Subject: [PATCH] [Coverage] Use the new getInstrProfSectionName API (NFC) llvm-svn: 300382 --- clang/lib/CodeGen/CoverageMappingGen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ 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) { -- 2.7.4