summaryrefslogtreecommitdiff
path: root/include/llvm/Support/MD5.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-05-31 22:34:56 +0000
committerEric Christopher <echristo@gmail.com>2013-05-31 22:34:56 +0000
commit769d24a60d798ffa3a47a01c9e7a0dcfaefbb882 (patch)
treeab2cfdce8673ac61af087d766cd51333ce2bb490 /include/llvm/Support/MD5.h
parentcbb45aa123c42dabb38f14bc1879848d77896998 (diff)
downloadllvm-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.h5
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);