summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-26 21:07:18 +0000
committerEric Christopher <echristo@gmail.com>2013-07-26 21:07:18 +0000
commit219fb91499e6ad047bcd765fe05e63b0b0445a00 (patch)
tree0634a247fac941f9721ccd6d3d904a7e9bfee061
parenta3d9ab90dcc6827dd73857e2af1483e88efa0588 (diff)
downloadbcm5719-llvm-219fb91499e6ad047bcd765fe05e63b0b0445a00.tar.gz
bcm5719-llvm-219fb91499e6ad047bcd765fe05e63b0b0445a00.zip
Remove addLetterToHash, no functional change.
llvm-svn: 187245
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index fae1ece086f..27d243e4c30 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud