summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CoverageMappingGen.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-04-15 00:10:05 +0000
committerVedant Kumar <vsk@apple.com>2017-04-15 00:10:05 +0000
commit8a767a430db78d9f65ddfe4bdce8ffc57dea2e24 (patch)
tree6cad24a9cd95cd35f2a9293f8b28191205db39f8 /clang/lib/CodeGen/CoverageMappingGen.cpp
parent1a6a2b642bd61910424cb7244f547c02460f18db (diff)
downloadbcm5719-llvm-8a767a430db78d9f65ddfe4bdce8ffc57dea2e24.tar.gz
bcm5719-llvm-8a767a430db78d9f65ddfe4bdce8ffc57dea2e24.zip
[Coverage] Use the new getInstrProfSectionName API (NFC)
llvm-svn: 300382
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r--clang/lib/CodeGen/CoverageMappingGen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp
index 0f87f8d50c6..a1023473bdd 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) {
OpenPOWER on IntegriCloud