[PATCH] D28684: [Support/Compression] - Change zlib API to return Error instead of custom status.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 09:02:09 PST 2017


grimar created this revision.
grimar added reviewers: rafael, davide.
grimar added subscribers: llvm-commits, grimar, evgeny777.

Previously API returned custom enum values.
Patch changes it to return Error with string description.
That should help users to report errors in universal way.


https://reviews.llvm.org/D28684

Files:
  include/llvm/Support/Compression.h
  lib/MC/ELFObjectWriter.cpp
  lib/Object/Decompressor.cpp
  lib/ProfileData/InstrProf.cpp
  lib/Support/Compression.cpp
  unittests/Support/CompressionTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28684.84318.patch
Type: text/x-patch
Size: 11606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170113/c8500b84/attachment.bin>


More information about the llvm-commits mailing list