diff options
author | Vedant Kumar <vsk@apple.com> | 2017-04-15 00:10:05 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-04-15 00:10:05 +0000 |
commit | 918a3427117562dbe2d6f64d1be24ccb5b178a9e (patch) | |
tree | da10467b5f92c5ddf45dae16e59840a2f470db71 /lib/CodeGen/CoverageMappingGen.cpp | |
parent | a3cc5f2c2d332d8cbadc38c7411e046e3efed1ba (diff) |
[Coverage] Use the new getInstrProfSectionName API (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r-- | lib/CodeGen/CoverageMappingGen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |