diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2014-10-06 13:48:07 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2014-10-06 13:48:07 +0000 |
commit | c8514a342108d8dda0481d0239b8e347eecaea35 (patch) | |
tree | 532ad845376745e089877fe32ff0bdcb25a762cb /llvm/lib/Support/MD5.cpp | |
parent | cdbb5f08d609706bbb8ad408fd123e8875f86b4f (diff) | |
download | llvm-c8514a342108d8dda0481d0239b8e347eecaea35.zip llvm-c8514a342108d8dda0481d0239b8e347eecaea35.tar.gz llvm-c8514a342108d8dda0481d0239b8e347eecaea35.tar.bz2 |
Make the MD5 result name consistent between functions, header and source.
llvm-svn: 219121
Diffstat (limited to 'llvm/lib/Support/MD5.cpp')
-rw-r--r-- | llvm/lib/Support/MD5.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/llvm/lib/Support/MD5.cpp b/llvm/lib/Support/MD5.cpp index 7aaf9a2..ceab580 100644 --- a/llvm/lib/Support/MD5.cpp +++ b/llvm/lib/Support/MD5.cpp @@ -229,7 +229,7 @@ void MD5::update(StringRef Str) { /// \brief Finish the hash and place the resulting hash into \p result. /// \param result is assumed to be a minimum of 16-bytes in size. -void MD5::final(MD5Result &result) { +void MD5::final(MD5Result &Result) { unsigned long used, free; used = lo & 0x3f; @@ -259,28 +259,28 @@ void MD5::final(MD5Result &result) { body(makeArrayRef(buffer, 64)); - result[0] = a; - result[1] = a >> 8; - result[2] = a >> 16; - result[3] = a >> 24; - result[4] = b; - result[5] = b >> 8; - result[6] = b >> 16; - result[7] = b >> 24; - result[8] = c; - result[9] = c >> 8; - result[10] = c >> 16; - result[11] = c >> 24; - result[12] = d; - result[13] = d >> 8; - result[14] = d >> 16; - result[15] = d >> 24; + Result[0] = a; + Result[1] = a >> 8; + Result[2] = a >> 16; + Result[3] = a >> 24; + Result[4] = b; + Result[5] = b >> 8; + Result[6] = b >> 16; + Result[7] = b >> 24; + Result[8] = c; + Result[9] = c >> 8; + Result[10] = c >> 16; + Result[11] = c >> 24; + Result[12] = d; + Result[13] = d >> 8; + Result[14] = d >> 16; + Result[15] = d >> 24; } -void MD5::stringifyResult(MD5Result &result, SmallString<32> &Str) { +void MD5::stringifyResult(MD5Result &Result, SmallString<32> &Str) { raw_svector_ostream Res(Str); for (int i = 0; i < 16; ++i) - Res << format("%.2x", result[i]); + Res << format("%.2x", Result[i]); } } |