|
LLVM
3.7.0
|
#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"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< SectionRef > | lookupSection (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" |
| #define DEBUG_TYPE "coverage-mapping" |
Definition at line 29 of file CoverageMappingReader.cpp.
|
static |
Definition at line 446 of file CoverageMappingReader.cpp.
References llvm::support::big, llvm::object::createBinary(), llvm::StringRef::empty(), llvm::Triple::getArch(), llvm::support::little, lookupSection(), and llvm::malformed.
Referenced by llvm::coverage::BinaryCoverageReader::create().
|
static |
Definition at line 403 of file CoverageMappingReader.cpp.
References llvm::StringRef::data(), llvm::decodeULEB128(), llvm::support::little, llvm::malformed, N, size, llvm::StringRef::size(), llvm::StringRef::substr(), and llvm::truncated.
Referenced by llvm::coverage::BinaryCoverageReader::create().
|
static |
Definition at line 435 of file CoverageMappingReader.cpp.
References llvm::object::SectionRef::getName(), llvm::no_data_found, llvm::ARMBuildAttrs::Section, and llvm::object::ObjectFile::sections().
Referenced by loadBinaryFormat().
| std::error_code readCoverageMappingData | ( | SectionData & | ProfileNames, |
| StringRef | Data, | ||
| std::vector< BinaryCoverageReader::ProfileMappingRecord > & | Records, | ||
| std::vector< StringRef > & | Filenames | ||
| ) |
Definition at line 321 of file CoverageMappingReader.cpp.
References llvm::alignmentAdjustment(), llvm::coverage::CoverageMappingVersion1, llvm::StringRef::data(), FuncName, llvm::malformed, llvm::COFF::NameSize, llvm::coverage::RawCoverageFilenamesReader::read(), llvm::StringRef::size(), T, llvm::unsupported_version, and llvm::IndexedInstrProf::Version.
Definition at line 129 of file CoverageMappingReader.cpp.
|
static |
Definition at line 401 of file CoverageMappingReader.cpp.
1.8.6