Add support for computing SHA1 in LLVM
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 1 Apr 2016 01:29:54 +0000 (01:29 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 1 Apr 2016 01:29:54 +0000 (01:29 +0000)
commit3689ae14ebebc495bab476461afc61b1bb3c72f7
treea9f0d40c5ed08836e911207eb1788c2531279cc7
parent98981e5573c5b35e944ec6fff46223ee624b2f5f
Add support for computing SHA1 in LLVM

Provide a class to generate a SHA1 from a sequence of bytes, and
a convenience raw_ostream adaptor.
This will be used to provide a "build-id" by hashing the Module
block when writing bitcode. ThinLTO will use this information for
incremental build.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 265094
llvm/include/llvm/Support/SHA1.h [new file with mode: 0644]
llvm/include/llvm/Support/raw_sha1_ostream.h [new file with mode: 0644]
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/SHA1.cpp [new file with mode: 0644]
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/raw_sha1_ostream_test.cpp [new file with mode: 0644]