]> granicus.if.org Git - clang/commitdiff
[Coverage] Use the new getInstrProfSectionName API (NFC)
authorVedant Kumar <vsk@apple.com>
Sat, 15 Apr 2017 00:10:05 +0000 (00:10 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 15 Apr 2017 00:10:05 +0000 (00:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300382 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CoverageMappingGen.cpp

index 0f87f8d50c6404030c00c6717c40525a4ce7b5fe..a1023473bdd33daeea9140f178a6d39722e7513f 100644 (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) {