clang
10.0.0git
|
Organizes the cross-function state that is used while generating code coverage mapping data. More...
#include "/work/www-prereleases/10.0.0/rc2/docsbuild/clang/lib/CodeGen/CoverageMappingGen.h"
Public Member Functions | |
CoverageMappingModuleGen (CodeGenModule &CGM, CoverageSourceInfo &SourceInfo) | |
CoverageSourceInfo & | getSourceInfo () const |
void | addFunctionMappingRecord (llvm::GlobalVariable *FunctionName, StringRef FunctionNameValue, uint64_t FunctionHash, const std::string &CoverageMapping, bool IsUsed=true) |
Add a function's coverage mapping record to the collection of the function mapping records. More... | |
void | emit () |
Emit the coverage mapping data for a translation unit. More... | |
unsigned | getFileID (const FileEntry *File) |
Return the coverage mapping translation unit file id for the given file. More... | |
Organizes the cross-function state that is used while generating code coverage mapping data.
Definition at line 49 of file CoverageMappingGen.h.
|
inline |
Definition at line 59 of file CoverageMappingGen.h.
void CoverageMappingModuleGen::addFunctionMappingRecord | ( | llvm::GlobalVariable * | FunctionName, |
StringRef | FunctionNameValue, | ||
uint64_t | FunctionHash, | ||
const std::string & | CoverageMapping, | ||
bool | IsUsed = true |
||
) |
Add a function's coverage mapping record to the collection of the function mapping records.
Definition at line 1320 of file CoverageMappingGen.cpp.
References dump(), and clang::CodeGen::Type.
void CoverageMappingModuleGen::emit | ( | ) |
Emit the coverage mapping data for a translation unit.
Definition at line 1371 of file CoverageMappingGen.cpp.
unsigned CoverageMappingModuleGen::getFileID | ( | const FileEntry * | File | ) |
Return the coverage mapping translation unit file id for the given file.
Definition at line 1462 of file CoverageMappingGen.cpp.
|
inline |
Definition at line 62 of file CoverageMappingGen.h.