[all-commits] [llvm/llvm-project] e69013: [Support] Change compression::zlib::{compress, unco...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jul 13 16:27:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e690137dde1c9b037e0c987d393da054d86eeeab
      https://github.com/llvm/llvm-project/commit/e690137dde1c9b037e0c987d393da054d86eeeab
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M clang-tools-extra/clangd/index/Serialization.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M lld/ELF/InputSection.cpp
    M lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
    M llvm/include/llvm/Object/Decompressor.h
    M llvm/include/llvm/Support/Compression.h
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/ObjCopy/ELF/ELFObject.cpp
    M llvm/lib/ObjCopy/ELF/ELFObject.h
    M llvm/lib/Object/Decompressor.cpp
    M llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
    M llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp
    M llvm/lib/ProfileData/InstrProf.cpp
    M llvm/lib/ProfileData/SampleProfReader.cpp
    M llvm/lib/ProfileData/SampleProfWriter.cpp
    M llvm/lib/Support/Compression.cpp
    M llvm/unittests/Support/CompressionTest.cpp

  Log Message:
  -----------
  [Support] Change compression::zlib::{compress,uncompress} to use uint8_t *

It's more natural to use uint8_t * (std::byte needs C++17 and llvm has
too much uint8_t *) and most callers use uint8_t * instead of char *.
The functions are recently moved into `llvm::compression::zlib::`, so
downstream projects need to make adaption anyway.




More information about the All-commits mailing list