InstrProf: Update for the LLVM API change in r218879

llvm-svn: 218880
This commit is contained in:
Justin Bogner
2014-10-02 16:04:18 +00:00
parent d6a9e4b3be
commit 94eabf58bd
3 changed files with 7 additions and 15 deletions

View File

@@ -908,8 +908,7 @@ void CodeGenPGO::emitCounterRegionMapping(const Decl *D) {
llvm::raw_string_ostream OS(CoverageMapping);
CoverageMappingGen MappingGen(*CGM.getCoverageMapping(),
CGM.getContext().getSourceManager(),
CGM.getLangOpts(), RegionCounterMap.get(),
NumRegionCounters);
CGM.getLangOpts(), RegionCounterMap.get());
MappingGen.emitCounterMapping(D, OS);
OS.flush();
}