LLVM API Documentation
Writer for instrumentation based coverage mapping data. More...
#include <CoverageMappingWriter.h>
Public Member Functions | |
CoverageMappingWriter (ArrayRef< unsigned > VirtualFileMapping, ArrayRef< CounterExpression > Expressions, MutableArrayRef< CounterMappingRegion > MappingRegions) | |
CoverageMappingWriter (ArrayRef< CounterExpression > Expressions, MutableArrayRef< CounterMappingRegion > MappingRegions) | |
void | write (raw_ostream &OS) |
Write encoded coverage mapping data to the given output stream. |
Writer for instrumentation based coverage mapping data.
Definition at line 40 of file CoverageMappingWriter.h.
llvm::coverage::CoverageMappingWriter::CoverageMappingWriter | ( | ArrayRef< unsigned > | VirtualFileMapping, |
ArrayRef< CounterExpression > | Expressions, | ||
MutableArrayRef< CounterMappingRegion > | MappingRegions | ||
) | [inline] |
Definition at line 46 of file CoverageMappingWriter.h.
llvm::coverage::CoverageMappingWriter::CoverageMappingWriter | ( | ArrayRef< CounterExpression > | Expressions, |
MutableArrayRef< CounterMappingRegion > | MappingRegions | ||
) | [inline] |
Definition at line 52 of file CoverageMappingWriter.h.
void CoverageMappingWriter::write | ( | raw_ostream & | OS | ) |
Write encoded coverage mapping data to the given output stream.
Definition at line 122 of file CoverageMappingWriter.cpp.
References llvm::coverage::CounterMappingRegion::CodeRegion, countFileIDs(), llvm::encodeULEB128(), llvm::coverage::Counter::EncodingCounterTagAndExpansionRegionTagBits, llvm::coverage::CounterMappingRegion::EncodingHasCodeBeforeBits, llvm::coverage::Counter::EncodingTagBits, llvm::coverage::CounterMappingRegion::ExpansionRegion, I, llvm::coverage::Counter::isZero(), llvm::ArrayRef< T >::size(), llvm::coverage::CounterMappingRegion::SkippedRegion, and writeCounter().