LLVM 20.0.0git
|
Namespaces | |
namespace | zlib |
namespace | zstd |
Classes | |
struct | Params |
Enumerations | |
enum class | Format { Zlib , Zstd } |
Functions | |
Format | formatFor (DebugCompressionType Type) |
const char * | getReasonIfUnsupported (Format F) |
void | compress (Params P, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output) |
Error | decompress (DebugCompressionType T, ArrayRef< uint8_t > Input, uint8_t *Output, size_t UncompressedSize) |
Error | decompress (Format F, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize) |
Error | decompress (DebugCompressionType T, ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize) |
|
strong |
Enumerator | |
---|---|
Zlib | |
Zstd |
Definition at line 76 of file Compression.h.
void llvm::compression::compress | ( | Params | P, |
ArrayRef< uint8_t > | Input, | ||
SmallVectorImpl< uint8_t > & | Output | ||
) |
Definition at line 46 of file Compression.cpp.
References llvm::compression::zlib::compress(), llvm::compression::zstd::compress(), and P.
Referenced by llvm::objcopy::elf::CompressedSection::CompressedSection().
Error llvm::compression::decompress | ( | DebugCompressionType | T, |
ArrayRef< uint8_t > | Input, | ||
SmallVectorImpl< uint8_t > & | Output, | ||
size_t | UncompressedSize | ||
) |
Definition at line 81 of file Compression.cpp.
References decompress(), and formatFor().
Error llvm::compression::decompress | ( | DebugCompressionType | T, |
ArrayRef< uint8_t > | Input, | ||
uint8_t * | Output, | ||
size_t | UncompressedSize | ||
) |
Definition at line 58 of file Compression.cpp.
References llvm::compression::zlib::decompress(), llvm::compression::zstd::decompress(), formatFor(), and llvm_unreachable.
Referenced by decompress(), llvm::object::Decompressor::decompress(), and llvm::objcopy::elf::ELFSectionWriter< ELFT >::visit().
Error llvm::compression::decompress | ( | compression::Format | F, |
ArrayRef< uint8_t > | Input, | ||
SmallVectorImpl< uint8_t > & | Output, | ||
size_t | UncompressedSize | ||
) |
Definition at line 69 of file Compression.cpp.
References llvm::compression::zlib::decompress(), llvm::compression::zstd::decompress(), F, and llvm_unreachable.
|
inline |
Definition at line 81 of file Compression.h.
References llvm_unreachable, llvm::None, llvm::Zlib, Zlib, llvm::Zstd, and Zstd.
Referenced by decompress(), and llvm::objcopy::elf::ELFSectionWriter< ELFT >::visit().
const char * llvm::compression::getReasonIfUnsupported | ( | compression::Format | F | ) |
Definition at line 30 of file Compression.cpp.
References F, llvm::compression::zlib::isAvailable(), llvm::compression::zstd::isAvailable(), and llvm_unreachable.
Referenced by llvm::objcopy::elf::ELFSectionWriter< ELFT >::visit().