clang API Documentation
Organizes the cross-function state that is used while generating code coverage mapping data. More...
#include <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) |
| Add a function's coverage mapping record to the collection of the function mapping records. | |
| void | emit () |
| Emit the coverage mapping data for a translation unit. | |
| unsigned | getFileID (const FileEntry *File) |
| Return the coverage mapping translation unit file id for the given file. | |
Organizes the cross-function state that is used while generating code coverage mapping data.
Definition at line 52 of file CoverageMappingGen.h.
| clang::CodeGen::CoverageMappingModuleGen::CoverageMappingModuleGen | ( | CodeGenModule & | CGM, |
| CoverageSourceInfo & | SourceInfo | ||
| ) | [inline] |
Definition at line 61 of file CoverageMappingGen.h.
| void CoverageMappingModuleGen::addFunctionMappingRecord | ( | llvm::GlobalVariable * | FunctionName, |
| StringRef | FunctionNameValue, | ||
| uint64_t | FunctionHash, | ||
| const std::string & | CoverageMapping | ||
| ) |
Add a function's coverage mapping record to the collection of the function mapping records.
Definition at line 1076 of file CoverageMappingGen.cpp.
References dump().
| void CoverageMappingModuleGen::emit | ( | ) |
Emit the coverage mapping data for a translation unit.
Definition at line 1121 of file CoverageMappingGen.cpp.
References getCoverageSection(), clang::InternalLinkage, and S.
| unsigned CoverageMappingModuleGen::getFileID | ( | const FileEntry * | File | ) |
Return the coverage mapping translation unit file id for the given file.
Definition at line 1188 of file CoverageMappingGen.cpp.
| CoverageSourceInfo& clang::CodeGen::CoverageMappingModuleGen::getSourceInfo | ( | ) | const [inline] |
Definition at line 64 of file CoverageMappingGen.h.