LLVM
8.0.1
|
#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>
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "coverage-mapping" |
Functions | |
static Expected< bool > | isCoverageMappingDummy (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 char * | TestingFormatMagic = "llvmcovmtestdata" |
#define DEBUG_TYPE "coverage-mapping" |
Definition at line 41 of file CoverageMappingReader.cpp.
Definition at line 367 of file CoverageMappingReader.cpp.
References llvm::coverage::RawCoverageMappingDummyChecker::isDummy().
|
static |
Definition at line 630 of file CoverageMappingReader.cpp.
References llvm::support::big, llvm::InstrProfSymtab::create(), llvm::object::createBinary(), E, llvm::StringRef::empty(), llvm::errorCodeToError(), llvm::Triple::getArch(), llvm::getInstrProfSectionName(), llvm::support::little, lookupSection(), llvm::coverage::malformed, and llvm::Error::success().
Referenced by llvm::coverage::BinaryCoverageReader::create().
|
static |
Definition at line 580 of file CoverageMappingReader.cpp.
References llvm::Address, llvm::alignmentAdjustment(), llvm::InstrProfSymtab::create(), llvm::StringRef::data(), llvm::decodeULEB128(), E, llvm::StringRef::empty(), llvm::support::little, llvm::coverage::malformed, N, llvm::StringRef::size(), llvm::size(), llvm::StringRef::substr(), llvm::Error::success(), and llvm::coverage::truncated.
Referenced by llvm::coverage::BinaryCoverageReader::create().
Definition at line 619 of file CoverageMappingReader.cpp.
References llvm::errorCodeToError(), llvm::coverage::no_data_found, and llvm::ARMBuildAttrs::Section.
Referenced by loadBinaryFormat().
|
static |
Definition at line 551 of file CoverageMappingReader.cpp.
References llvm::coverage::CurrentVersion, llvm::StringRef::data(), E, llvm::coverage::unsupported_version, and llvm::IndexedInstrProf::Version.
Definition at line 147 of file CoverageMappingReader.cpp.
Definition at line 578 of file CoverageMappingReader.cpp.