]> granicus.if.org Git - llvm/commit
Add a function to MD5 a file's contents.
authorZachary Turner <zturner@google.com>
Mon, 20 Mar 2017 23:33:18 +0000 (23:33 +0000)
committerZachary Turner <zturner@google.com>
Mon, 20 Mar 2017 23:33:18 +0000 (23:33 +0000)
commite40105539c1633507fcc94ed1286f62d36461494
tree172c26a0161d6660b5c4e786a52cbc932cf3b948
parenta734e288727e99ec0c77087ed89f18b828b2209d
Add a function to MD5 a file's contents.

In doing so, clean up the MD5 interface a little.  Most
existing users only care about the lower 8 bytes of an MD5,
but for some users that care about the upper and lower,
there wasn't a good interface.  Furthermore, consumers
of the MD5 checksum were required to handle endianness
details on their own, so it seems reasonable to abstract
this into a nicer interface that just gives you the right
value.

Differential Revision: https://reviews.llvm.org/D31105

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298322 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileSystem.h
include/llvm/Support/MD5.h
lib/CodeGen/AsmPrinter/DIEHash.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/Support/MD5.cpp
lib/Support/Path.cpp
unittests/Support/MD5Test.cpp
unittests/Support/Path.cpp