projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0369ad7
)
Use existing builtin hashing functions to make this routine more
author
Eric Christopher
<echristo@gmail.com>
Mon, 5 Aug 2013 22:00:50 +0000
(22:00 +0000)
committer
Eric Christopher
<echristo@gmail.com>
Mon, 5 Aug 2013 22:00:50 +0000
(22:00 +0000)
simple.
llvm-svn: 187745
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index b4bc61b72434768318f174d2791712b314b676d0..047627a5ff698719eab035c586a05a9cbe013d39 100644
(file)
--- a/
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-988,11
+988,8
@@
static StringRef getDIEStringAttr(DIE *Die, unsigned Attr) {
/// a trailing NULL with the string.
static void addStringToHash(MD5 &Hash, StringRef Str) {
DEBUG(dbgs() << "Adding string " << Str << " to hash.\n");
- HashValue SVal((const uint8_t *)Str.data(), Str.size());
- const uint8_t NB = '\0';
- HashValue NBVal((const uint8_t *)&NB, 1);
- Hash.update(SVal);
- Hash.update(NBVal);
+ Hash.update(Str);
+ Hash.update('\0');
}
// FIXME: These are copied and only slightly modified out of LEB128.h.