|
clang
5.0.0
|
Organizes the cross-function state that is used while generating code coverage mapping data. More...
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 51 of file CoverageMappingGen.h.
|
inline |
Definition at line 61 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 1006 of file CoverageMappingGen.cpp.
References dump(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getLLVMContext(), I, and clang::CodeGen::Type.
Referenced by clang::CodeGen::CodeGenPGO::emitEmptyCounterMapping().
| void CoverageMappingModuleGen::emit | ( | ) |
Emit the coverage mapping data for a translation unit.
Definition at line 1057 of file CoverageMappingGen.cpp.
References clang::CodeGen::CodeGenModule::addUsedGlobal(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::CodeGen::CodeGenModule::getModule(), I, clang::InternalLinkage, S, and clang::CodeGen::Type.
Return the coverage mapping translation unit file id for the given file.
Definition at line 1140 of file CoverageMappingGen.cpp.
|
inline |
Definition at line 64 of file CoverageMappingGen.h.
1.8.6