From: Vedant Kumar Date: Sat, 15 Apr 2017 00:10:05 +0000 (+0000) Subject: [Coverage] Use the new getInstrProfSectionName API (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=918a3427117562dbe2d6f64d1be24ccb5b178a9e;p=clang [Coverage] Use the new getInstrProfSectionName API (NFC) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300382 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CoverageMappingGen.cpp b/lib/CodeGen/CoverageMappingGen.cpp index 0f87f8d50c..a1023473bd 100644 --- a/lib/CodeGen/CoverageMappingGen.cpp +++ b/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) {