LLVM 22.0.0git
|
Writer of the filenames section for the instrumentation based code coverage. More...
#include "llvm/ProfileData/Coverage/CoverageMappingWriter.h"
Public Member Functions | |
LLVM_ABI | CoverageFilenamesSectionWriter (ArrayRef< std::string > Filenames) |
LLVM_ABI void | write (raw_ostream &OS, bool Compress=true) |
Write encoded filenames to the given output stream. |
Writer of the filenames section for the instrumentation based code coverage.
Definition at line 30 of file CoverageMappingWriter.h.
CoverageFilenamesSectionWriter::CoverageFilenamesSectionWriter | ( | ArrayRef< std::string > | Filenames | ) |
Definition at line 29 of file CoverageMappingWriter.cpp.
References assert(), and llvm::StringSet< AllocatorTy >::insert().
void CoverageFilenamesSectionWriter::write | ( | raw_ostream & | OS, |
bool | Compress = true ) |
Write encoded filenames to the given output stream.
If Compress
is true, attempt to compress the filenames.
Definition at line 39 of file CoverageMappingWriter.cpp.
References llvm::arrayRefFromStringRef(), llvm::compression::zlib::BestSizeCompression, llvm::compression::zlib::compress(), llvm::DoInstrProfNameCompression, llvm::encodeULEB128(), llvm::compression::zlib::isAvailable(), llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::toStringRef().