LLVM API Documentation
Base class for the raw coverage mapping and filenames data readers. More...
#include <CoverageMappingReader.h>
Protected Member Functions | |
std::error_code | error (std::error_code EC) |
Return the error code. | |
std::error_code | success () |
Clear the current error code and return a successful one. | |
RawCoverageReader (StringRef Data) | |
std::error_code | readULEB128 (uint64_t &Result) |
std::error_code | readIntMax (uint64_t &Result, uint64_t MaxPlus1) |
std::error_code | readSize (uint64_t &Result) |
std::error_code | readString (StringRef &Result) |
Protected Attributes | |
StringRef | Data |
Base class for the raw coverage mapping and filenames data readers.
Definition at line 72 of file CoverageMappingReader.h.
llvm::coverage::RawCoverageReader::RawCoverageReader | ( | StringRef | Data | ) | [inline, protected] |
Definition at line 82 of file CoverageMappingReader.h.
std::error_code llvm::coverage::RawCoverageReader::error | ( | std::error_code | EC | ) | [inline, protected] |
Return the error code.
Definition at line 77 of file CoverageMappingReader.h.
Referenced by success().
std::error_code RawCoverageReader::readIntMax | ( | uint64_t & | Result, |
uint64_t | MaxPlus1 | ||
) | [protected] |
Definition at line 42 of file CoverageMappingReader.cpp.
References llvm::malformed, and llvm::success.
std::error_code RawCoverageReader::readSize | ( | uint64_t & | Result | ) | [protected] |
Definition at line 51 of file CoverageMappingReader.cpp.
References llvm::malformed, and llvm::success.
std::error_code RawCoverageReader::readString | ( | StringRef & | Result | ) | [protected] |
Definition at line 60 of file CoverageMappingReader.cpp.
References llvm::StringRef::substr(), and llvm::success.
std::error_code RawCoverageReader::readULEB128 | ( | uint64_t & | Result | ) | [protected] |
Definition at line 31 of file CoverageMappingReader.cpp.
References llvm::decodeULEB128(), llvm::malformed, N, llvm::success, and llvm::truncated.
std::error_code llvm::coverage::RawCoverageReader::success | ( | ) | [inline, protected] |
Clear the current error code and return a successful one.
Definition at line 80 of file CoverageMappingReader.h.
References error(), and llvm::object::success.
StringRef llvm::coverage::RawCoverageReader::Data [protected] |
Definition at line 74 of file CoverageMappingReader.h.