clang
9.0.0
|
Organizes the per-function state that is used while generating code coverage mapping data. More...
#include "/work/llvm-www-releases/9.0.0/docsbuild/llvm.src/tools/clang/lib/CodeGen/CoverageMappingGen.h"
Public Member Functions | |
CoverageMappingGen (CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts) | |
CoverageMappingGen (CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts, llvm::DenseMap< const Stmt *, unsigned > *CounterMap) | |
void | emitCounterMapping (const Decl *D, llvm::raw_ostream &OS) |
Emit the coverage mapping data which maps the regions of code to counters that will be used to find the execution counts for those regions. More... | |
void | emitEmptyMapping (const Decl *D, llvm::raw_ostream &OS) |
Emit the coverage mapping data for an unused function. More... | |
Organizes the per-function state that is used while generating code coverage mapping data.
Definition at line 84 of file CoverageMappingGen.h.
|
inline |
Definition at line 91 of file CoverageMappingGen.h.
|
inline |
Definition at line 95 of file CoverageMappingGen.h.
void CoverageMappingGen::emitCounterMapping | ( | const Decl * | D, |
llvm::raw_ostream & | OS | ||
) |
Emit the coverage mapping data which maps the regions of code to counters that will be used to find the execution counts for those regions.
Definition at line 1471 of file CoverageMappingGen.cpp.
References SM.
Referenced by clang::CodeGen::CodeGenPGO::assignRegionCounters().
void CoverageMappingGen::emitEmptyMapping | ( | const Decl * | D, |
llvm::raw_ostream & | OS | ||
) |
Emit the coverage mapping data for an unused function.
It creates mapping regions with the counter of zero.
Definition at line 1479 of file CoverageMappingGen.cpp.
References SM.
Referenced by clang::CodeGen::CodeGenPGO::emitEmptyCounterMapping().