diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-26 21:07:18 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-26 21:07:18 +0000 |
commit | 0be31910e08bd70e35293d7f85c797071326c02c (patch) | |
tree | f273e6aa3c23da512b922b8f7f72d418b77983f0 /lib | |
parent | 9758562aa706a5a20a9d833074e733ed544db776 (diff) | |
download | external_llvm-0be31910e08bd70e35293d7f85c797071326c02c.zip external_llvm-0be31910e08bd70e35293d7f85c797071326c02c.tar.gz external_llvm-0be31910e08bd70e35293d7f85c797071326c02c.tar.bz2 |
Remove addLetterToHash, no functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index fae1ece..27d243e 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -995,15 +995,6 @@ static void addStringToHash(MD5 &Hash, StringRef Str) { Hash.update(NBVal); } -/// \brief Adds the character string in \p Str to the hash in \p Hash. This does -/// not hash a trailing NULL on the character. -static void addLetterToHash(MD5 &Hash, StringRef Str) { - DEBUG(dbgs() << "Adding letter " << Str << " to hash.\n"); - assert(Str.size() == 1 && "Trying to add a too large letter?"); - HashValue SVal((const uint8_t *)Str.data(), Str.size()); - Hash.update(SVal); -} - // FIXME: These are copied and only slightly modified out of LEB128.h. /// \brief Adds the unsigned in \p N to the hash in \p Hash. This also encodes @@ -1035,7 +1026,7 @@ static void addParentContextToHash(MD5 &Hash, DIE *Parent) { addParentContextToHash(Hash, Parent->getParent()); // Append the letter "C" to the sequence. - addLetterToHash(Hash, "C"); + addULEB128ToHash(Hash, 'C'); // Followed by the DWARF tag of the construct. addULEB128ToHash(Hash, Parent->getTag()); |