[llvm] r187245 - Remove addLetterToHash, no functional change.

Eric Christopher echristo at gmail.com
Fri Jul 26 14:07:18 PDT 2013


Author: echristo
Date: Fri Jul 26 16:07:18 2013
New Revision: 187245

URL: http://llvm.org/viewvc/llvm-project?rev=187245&view=rev
Log:
Remove addLetterToHash, no functional change.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=187245&r1=187244&r2=187245&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Jul 26 16:07:18 2013
@@ -995,15 +995,6 @@ static void addStringToHash(MD5 &Hash, S
   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 &
     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());





More information about the llvm-commits mailing list