LLVM  3.7.0
Macros | Functions | Variables
CoverageMappingReader.cpp File Reference
#include "llvm/ProfileData/CoverageMappingReader.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/Object/MachOUniversal.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for CoverageMappingReader.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "coverage-mapping"
 

Functions

template<typename T , support::endianness Endian>
std::error_code readCoverageMappingData (SectionData &ProfileNames, StringRef Data, std::vector< BinaryCoverageReader::ProfileMappingRecord > &Records, std::vector< StringRef > &Filenames)
 
static std::error_code loadTestingFormat (StringRef Data, SectionData &ProfileNames, StringRef &CoverageMapping, uint8_t &BytesInAddress, support::endianness &Endian)
 
static ErrorOr< SectionReflookupSection (ObjectFile &OF, StringRef Name)
 
static std::error_code loadBinaryFormat (MemoryBufferRef ObjectBuffer, SectionData &ProfileNames, StringRef &CoverageMapping, uint8_t &BytesInAddress, support::endianness &Endian, StringRef Arch)
 

Variables

static const unsigned EncodingExpansionRegionBit
 
static const char * TestingFormatMagic = "llvmcovmtestdata"
 

Macro Definition Documentation

#define DEBUG_TYPE   "coverage-mapping"

Definition at line 29 of file CoverageMappingReader.cpp.

Function Documentation

static std::error_code loadBinaryFormat ( MemoryBufferRef  ObjectBuffer,
SectionData &  ProfileNames,
StringRef CoverageMapping,
uint8_t &  BytesInAddress,
support::endianness Endian,
StringRef  Arch 
)
static
static std::error_code loadTestingFormat ( StringRef  Data,
SectionData &  ProfileNames,
StringRef CoverageMapping,
uint8_t &  BytesInAddress,
support::endianness Endian 
)
static
static ErrorOr<SectionRef> lookupSection ( ObjectFile OF,
StringRef  Name 
)
static
template<typename T , support::endianness Endian>
std::error_code readCoverageMappingData ( SectionData &  ProfileNames,
StringRef  Data,
std::vector< BinaryCoverageReader::ProfileMappingRecord > &  Records,
std::vector< StringRef > &  Filenames 
)

Variable Documentation

const unsigned EncodingExpansionRegionBit
static
Initial value:
= 1
<< Counter::EncodingTagBits

Definition at line 129 of file CoverageMappingReader.cpp.

const char* TestingFormatMagic = "llvmcovmtestdata"
static

Definition at line 401 of file CoverageMappingReader.cpp.