[PATCH] D129323: [llvm] add ztsd compression namespace

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 9 23:36:35 PDT 2022


MaskRay added inline comments.


================
Comment at: llvm/include/llvm/Support/Compression.h:48
+
+static constexpr int NoCompression = -5;
+static constexpr int BestSpeedCompression = 1;
----------------
leonardchan wrote:
> ckissane wrote:
> > ckissane wrote:
> > > MaskRay wrote:
> > > > leonardchan wrote:
> > > > > nit: perhaps this could be an enum with assigned values?
> > > > Just use `constexpr`. They are automatically internal linkage
> > > I am simply matching the layout of the current zlib namespace here, what is your preference for handling this given that?
> > I am simply matching the layout of the current zlib namespace here, what is your preference for handling this given that?
> Oh I didn't see that. Disregard this then. Better to maintain consistency with this patch.
I just removed `static` from zlib. Remove `static` for the zstd patch, too.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129323/new/

https://reviews.llvm.org/D129323



More information about the llvm-commits mailing list