LLVM  8.0.1
Macros | Functions | Variables
CoverageMappingReader.cpp File Reference
#include "llvm/ProfileData/Coverage/CoverageMappingReader.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Object/Binary.h"
#include "llvm/Object/Error.h"
#include "llvm/Object/MachOUniversal.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include <vector>
Include dependency graph for CoverageMappingReader.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "coverage-mapping"
 

Functions

static Expected< boolisCoverageMappingDummy (uint64_t Hash, StringRef Mapping)
 
template<typename T , support::endianness Endian>
static Error readCoverageMappingData (InstrProfSymtab &ProfileNames, StringRef Data, std::vector< BinaryCoverageReader::ProfileMappingRecord > &Records, std::vector< StringRef > &Filenames)
 
static Error loadTestingFormat (StringRef Data, InstrProfSymtab &ProfileNames, StringRef &CoverageMapping, uint8_t &BytesInAddress, support::endianness &Endian)
 
static Expected< SectionRef > lookupSection (ObjectFile &OF, StringRef Name)
 
static Error loadBinaryFormat (MemoryBufferRef ObjectBuffer, InstrProfSymtab &ProfileNames, StringRef &CoverageMapping, uint8_t &BytesInAddress, support::endianness &Endian, StringRef Arch)
 

Variables

static const unsigned EncodingExpansionRegionBit
 
static const charTestingFormatMagic = "llvmcovmtestdata"
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "coverage-mapping"

Definition at line 41 of file CoverageMappingReader.cpp.

Function Documentation

◆ isCoverageMappingDummy()

static Expected<bool> isCoverageMappingDummy ( uint64_t  Hash,
StringRef  Mapping 
)
static

◆ loadBinaryFormat()

static Error loadBinaryFormat ( MemoryBufferRef  ObjectBuffer,
InstrProfSymtab ProfileNames,
StringRef CoverageMapping,
uint8_t &  BytesInAddress,
support::endianness Endian,
StringRef  Arch 
)
static

◆ loadTestingFormat()

static Error loadTestingFormat ( StringRef  Data,
InstrProfSymtab ProfileNames,
StringRef CoverageMapping,
uint8_t &  BytesInAddress,
support::endianness Endian 
)
static

◆ lookupSection()

static Expected<SectionRef> lookupSection ( ObjectFile &  OF,
StringRef  Name 
)
static

◆ readCoverageMappingData()

template<typename T , support::endianness Endian>
static Error readCoverageMappingData ( InstrProfSymtab ProfileNames,
StringRef  Data,
std::vector< BinaryCoverageReader::ProfileMappingRecord > &  Records,
std::vector< StringRef > &  Filenames 
)
static

Variable Documentation

◆ EncodingExpansionRegionBit

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

Definition at line 147 of file CoverageMappingReader.cpp.

◆ TestingFormatMagic

const char* TestingFormatMagic = "llvmcovmtestdata"
static

Definition at line 578 of file CoverageMappingReader.cpp.