llvm-project/lldb
Hans Wennborg 1e1e3ba252 Unify the two CRC implementations
David added the JamCRC implementation in r246590. More recently, Eugene
added a CRC-32 implementation in r357901, which falls back to zlib's
crc32 function if present.

These checksums are essentially the same, so having multiple
implementations seems unnecessary. This replaces the CRC-32
implementation with the simpler one from JamCRC, and implements the
JamCRC interface in terms of CRC-32 since this means it can use zlib's
implementation when available, saving a few bytes and potentially making
it faster.

JamCRC took an ArrayRef<char> argument, and CRC-32 took a StringRef.
This patch changes it to ArrayRef<uint8_t> which I think is the best
choice, and simplifies a few of the callers nicely.

Differential revision: https://reviews.llvm.org/D68570

llvm-svn: 374148
2019-10-09 09:06:30 +00:00
..
cmake [CMake] Fix building without python on Windows 2019-10-08 18:38:46 +00:00
docs Expand on the qfProcessInfo documentation, add examples from 2019-10-04 21:01:52 +00:00
examples Revert [heap.py] Add missing declaration for malloc_get_all_zones 2019-08-22 21:01:45 +00:00
include/lldb StopInfo/Mach: Use early-exits, reflow messy comments, NFCI 2019-10-08 19:40:13 +00:00
lit Explicitly set entry point arch when it's thumb [Second Try] 2019-10-08 23:44:49 +00:00
packages/Python/lldbsuite Add test coverage to printing of enums and fix display of unsigned values 2019-10-08 19:52:01 +00:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts [lldb] Unifying lldb python path 2019-10-07 23:49:01 +00:00
source Unify the two CRC implementations 2019-10-09 09:06:30 +00:00
test [CMake] Add two more uses of add_lldb_test_dependency 2019-10-08 00:44:54 +00:00
third_party/Python/module dotest.py: bugfix: test filters with -f do not work on Python3 2019-09-20 23:41:29 +00:00
tools [debugserver] Include the correct header. 2019-10-07 20:35:22 +00:00
unittests Explicitly set entry point arch when it's thumb [Second Try] 2019-10-08 23:44:49 +00:00
utils [CMake] Track test dependencies with add_lldb_test_dependency 2019-10-08 00:21:34 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt Fixing missing lldb-scripts rename from D68370 2019-10-08 01:10:03 +00:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py