LLVM
8.0.1
|
Writer for instrumentation based coverage mapping data. More...
#include "llvm/ProfileData/Coverage/CoverageMappingWriter.h"
Public Member Functions | |
CoverageMappingWriter (ArrayRef< unsigned > VirtualFileMapping, ArrayRef< CounterExpression > Expressions, MutableArrayRef< CounterMappingRegion > MappingRegions) | |
void | write (raw_ostream &OS) |
Write encoded coverage mapping data to the given output stream. More... | |
Writer for instrumentation based coverage mapping data.
Definition at line 42 of file CoverageMappingWriter.h.
|
inline |
Definition at line 48 of file CoverageMappingWriter.h.
References llvm::coverage::CoverageFilenamesSectionWriter::write().
void CoverageMappingWriter::write | ( | raw_ostream & | OS | ) |
Write encoded coverage mapping data to the given output stream.
Definition at line 118 of file CoverageMappingWriter.cpp.
References llvm::all_of(), assert(), llvm::coverage::CounterMappingRegion::CodeRegion, E, llvm::encodeULEB128(), llvm::coverage::Counter::EncodingCounterTagAndExpansionRegionTagBits, llvm::coverage::Counter::EncodingTagBits, llvm::coverage::CounterMappingRegion::endLoc(), llvm::coverage::CounterMappingRegion::ExpansionRegion, Expressions, llvm::coverage::CounterMappingRegion::FileID, llvm::coverage::CounterMappingRegion::GapRegion, I, llvm::coverage::Counter::isZero(), llvm::coverage::CounterMappingRegion::Kind, llvm::max(), llvm::coverage::CounterMappingRegion::SkippedRegion, llvm::coverage::CounterMappingRegion::startLoc(), and writeCounter().