LLVM 20.0.0git
|
Writer of the filenames section for the instrumentation based code coverage. More...
#include "llvm/ProfileData/Coverage/CoverageMappingWriter.h"
Public Member Functions | |
CoverageFilenamesSectionWriter (ArrayRef< std::string > Filenames) | |
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 29 of file CoverageMappingWriter.h.
CoverageFilenamesSectionWriter::CoverageFilenamesSectionWriter | ( | ArrayRef< std::string > | Filenames | ) |
Definition at line 30 of file CoverageMappingWriter.cpp.
References assert(), llvm::StringSet< AllocatorTy >::insert(), and Name.
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 40 of file CoverageMappingWriter.cpp.
References llvm::compression::zlib::BestSizeCompression, llvm::compression::zlib::compress(), llvm::DoInstrProfNameCompression, llvm::encodeULEB128(), llvm::compression::zlib::isAvailable(), OS, llvm::ArrayRef< T >::size(), llvm::SmallVectorBase< Size_T >::size(), and llvm::dwarf::toStringRef().