From 769d24a60d798ffa3a47a01c9e7a0dcfaefbb882 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 31 May 2013 22:34:56 +0000 Subject: 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 --- include/llvm/Support/MD5.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/llvm/Support/MD5.h') 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 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); -- cgit v1.2.3