diff options
author | Fangrui Song <i@maskray.me> | 2022-09-17 12:35:17 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-09-17 12:35:17 -0700 |
commit | 367997d0d647db2997311a6eec046559199decd7 (patch) | |
tree | 74c70ae829a8b5ff398d93e485f2600b1a6cff04 /llvm/lib/ProfileData/SampleProfReader.cpp | |
parent | 31b91356bc6b380187ecfddbc0f01af5b6669ec3 (diff) | |
download | llvm-367997d0d647db2997311a6eec046559199decd7.zip llvm-367997d0d647db2997311a6eec046559199decd7.tar.gz llvm-367997d0d647db2997311a6eec046559199decd7.tar.bz2 |
[Support] Rename llvm::compression::{zlib,zstd}::uncompress to more appropriate decompress
This improves consistency with other places (e.g. llvm::compression::decompress,
llvm::object::Decompressor::decompress, llvm-objcopy).
Note: when zstd::uncompress was added, we noticed that the API `ZSTD_decompress`
is fine while the zlib API `uncompress` is a misnomer.
Diffstat (limited to 'llvm/lib/ProfileData/SampleProfReader.cpp')
-rw-r--r-- | llvm/lib/ProfileData/SampleProfReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/SampleProfReader.cpp b/llvm/lib/ProfileData/SampleProfReader.cpp index 6d1fad4..6cd6723 100644 --- a/llvm/lib/ProfileData/SampleProfReader.cpp +++ b/llvm/lib/ProfileData/SampleProfReader.cpp @@ -956,7 +956,7 @@ std::error_code SampleProfileReaderExtBinaryBase::decompressSection( uint8_t *Buffer = Allocator.Allocate<uint8_t>(DecompressBufSize); size_t UCSize = DecompressBufSize; - llvm::Error E = compression::zlib::uncompress( + llvm::Error E = compression::zlib::decompress( makeArrayRef(Data, *CompressSize), Buffer, UCSize); if (E) return sampleprof_error::uncompress_failed; |