diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-10-02 16:15:37 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-10-02 16:15:37 +0000 |
commit | 1c4fb4600da6e64234c6933dcc9c9cf5de5b14ad (patch) | |
tree | 1a6967c59fad53cfc1dc265b94cb4eed73fec93a /clang/lib/CodeGen/CoverageMappingGen.h | |
parent | 70b5c562ce0c9c5d706f4f8c09b5f3528914e838 (diff) | |
download | bcm5719-llvm-1c4fb4600da6e64234c6933dcc9c9cf5de5b14ad.tar.gz bcm5719-llvm-1c4fb4600da6e64234c6933dcc9c9cf5de5b14ad.zip |
Revert "InstrProf: Update for the LLVM API change in r218879"
r218879 has been reverted for now, this needs to go to match.
This reverts commit r218880.
llvm-svn: 218882
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.h')
-rw-r--r-- | clang/lib/CodeGen/CoverageMappingGen.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.h b/clang/lib/CodeGen/CoverageMappingGen.h index e4c6412be09..45e0db8bce3 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.h +++ b/clang/lib/CodeGen/CoverageMappingGen.h @@ -87,16 +87,20 @@ 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) {} + : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(nullptr), + NumRegionCounters(0) {} CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts, - llvm::DenseMap<const Stmt *, unsigned> *CounterMap) - : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap) {} + llvm::DenseMap<const Stmt *, unsigned> *CounterMap, + unsigned NumRegionCounters) + : CVM(CVM), SM(SM), LangOpts(LangOpts), CounterMap(CounterMap), + NumRegionCounters(NumRegionCounters) {} /// \brief Emit the coverage mapping data which maps the regions of /// code to counters that will be used to find the execution |