diff options
author | Eric Christopher <echristo@gmail.com> | 2013-05-31 22:34:56 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-05-31 22:34:56 +0000 |
commit | 769d24a60d798ffa3a47a01c9e7a0dcfaefbb882 (patch) | |
tree | ab2cfdce8673ac61af087d766cd51333ce2bb490 /include/llvm/Support/MD5.h | |
parent | cbb45aa123c42dabb38f14bc1879848d77896998 (diff) | |
download | llvm-769d24a60d798ffa3a47a01c9e7a0dcfaefbb882.tar.gz llvm-769d24a60d798ffa3a47a01c9e7a0dcfaefbb882.tar.bz2 llvm-769d24a60d798ffa3a47a01c9e7a0dcfaefbb882.tar.xz |
Add support for adding the contents of a StringRef to the MD5 hash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MD5.h')
-rw-r--r-- | include/llvm/Support/MD5.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/MD5.h b/include/llvm/Support/MD5.h index 38bdbaebbb..b2b8c2d55b 100644 --- a/include/llvm/Support/MD5.h +++ b/include/llvm/Support/MD5.h @@ -49,9 +49,12 @@ public: MD5(); - /// \brief Updates the hash for arguments provided. + /// \brief Updates the hash for the byte stream provided. void update(ArrayRef<uint8_t> Data); + /// \brief Updates the hash for the StringRef provided. + void update(StringRef Str); + /// \brief Finishes off the hash and puts the result in result. void final(MD5Result &result); |