[PATCH] D129324: [llvm] add compression AlgorithmName (s) to the zlib and zstd namespaces

Cole Kissane via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 13:13:19 PDT 2022


ckissane created this revision.
ckissane added reviewers: phosek, leonardchan.
Herald added a project: All.
ckissane requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129324

Files:
  llvm/include/llvm/Support/Compression.h


Index: llvm/include/llvm/Support/Compression.h
===================================================================
--- llvm/include/llvm/Support/Compression.h
+++ llvm/include/llvm/Support/Compression.h
@@ -24,6 +24,7 @@
 
 namespace zlib {
 
+static constexpr StringRef AlgorithmName = "zlib";
 static constexpr int NoCompression = 0;
 static constexpr int BestSpeedCompression = 1;
 static constexpr int DefaultCompression = 6;
@@ -45,6 +46,7 @@
 
 namespace zstd {
 
+static constexpr StringRef AlgorithmName = "zstd";
 static constexpr int NoCompression = -5;
 static constexpr int BestSpeedCompression = 1;
 static constexpr int DefaultCompression = 5;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129324.443039.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220707/602e71fd/attachment.bin>


More information about the llvm-commits mailing list