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

@@ -87,20 +87,16 @@ class CoverageMappingGen {
SourceManager &SM;
const LangOptions &LangOpts;
llvm::DenseMap<const Stmt *, unsigned> *CounterMap;
unsigned NumRegionCounters;
public:
CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM,
const LangOptions &LangOpts)
: CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr),
NumRegionCounters(0) {}
: CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr) {}
CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM,
const LangOptions &LangOpts,
llvm::DenseMap<const Stmt *, unsigned> *CounterMap,
unsigned NumRegionCounters)
: CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap),
NumRegionCounters(NumRegionCounters) {}
llvm::DenseMap<const Stmt *, unsigned> *CounterMap)
: CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap) {}
/// \brief Emit the coverage mapping data which maps the regions of
/// code to counters that will be used to find the execution