LLVM API Documentation
#include "llvm/ProfileData/CoverageMappingReader.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/LEB128.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
std::error_code | readCoverageMappingData (SectionData &ProfileNames, StringRef Data, std::vector< ObjectFileCoverageMappingReader::ProfileMappingRecord > &Records, std::vector< StringRef > &Filenames) |
static std::error_code | decodeTestingFormat (StringRef Data, SectionData &ProfileNames, StringRef &CoverageMapping) |
Variables | |
static const unsigned | EncodingExpansionRegionBit |
static const char * | TestingFormatMagic = "llvmcovmtestdata" |
static std::error_code decodeTestingFormat | ( | StringRef | Data, |
SectionData & | ProfileNames, | ||
StringRef & | CoverageMapping | ||
) | [static] |
Definition at line 416 of file CoverageMappingReader.cpp.
References llvm::StringRef::data(), llvm::decodeULEB128(), llvm::malformed, N, llvm::StringRef::size(), llvm::StringRef::substr(), llvm::success, TestingFormatMagic, and llvm::truncated.
Referenced by llvm::coverage::ObjectFileCoverageMappingReader::ObjectFileCoverageMappingReader().
std::error_code readCoverageMappingData | ( | SectionData & | ProfileNames, |
StringRef | Data, | ||
std::vector< ObjectFileCoverageMappingReader::ProfileMappingRecord > & | Records, | ||
std::vector< StringRef > & | Filenames | ||
) |
Definition at line 337 of file CoverageMappingReader.cpp.
References llvm::DenseSet< ValueT, ValueInfoT >::count(), llvm::coverage::CoverageMappingVersion1, llvm::StringRef::data(), llvm::StringRef::empty(), I, llvm::DenseSet< ValueT, ValueInfoT >::insert(), llvm::malformed, llvm::coverage::RawCoverageFilenamesReader::read(), llvm::StringRef::size(), llvm::success, llvm::unsupported_version, and llvm::IndexedInstrProf::Version.
const unsigned EncodingExpansionRegionBit [static] |
1 << Counter::EncodingTagBits
Definition at line 122 of file CoverageMappingReader.cpp.
const char* TestingFormatMagic = "llvmcovmtestdata" [static] |
Definition at line 414 of file CoverageMappingReader.cpp.
Referenced by decodeTestingFormat(), and llvm::coverage::ObjectFileCoverageMappingReader::ObjectFileCoverageMappingReader().