mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 03:47:20 +00:00
Revert "Use existing builtin hashing functions to make this routine more"
This reverts commit r187745. llvm-svn: 187747
This commit is contained in:
parent
8884e7fbaa
commit
1c0455141c
@ -988,8 +988,11 @@ static StringRef getDIEStringAttr(DIE *Die, unsigned Attr) {
|
|||||||
/// a trailing NULL with the string.
|
/// a trailing NULL with the string.
|
||||||
static void addStringToHash(MD5 &Hash, StringRef Str) {
|
static void addStringToHash(MD5 &Hash, StringRef Str) {
|
||||||
DEBUG(dbgs() << "Adding string " << Str << " to hash.\n");
|
DEBUG(dbgs() << "Adding string " << Str << " to hash.\n");
|
||||||
Hash.update(Str);
|
HashValue SVal((const uint8_t *)Str.data(), Str.size());
|
||||||
Hash.update('\0');
|
const uint8_t NB = '\0';
|
||||||
|
HashValue NBVal((const uint8_t *)&NB, 1);
|
||||||
|
Hash.update(SVal);
|
||||||
|
Hash.update(NBVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: These are copied and only slightly modified out of LEB128.h.
|
// FIXME: These are copied and only slightly modified out of LEB128.h.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user