From: Davide Italiano Date: Mon, 7 Nov 2016 21:56:04 +0000 (+0000) Subject: [lib/Object] Rename elf_hash to hashSysV. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93cbe9bc6f605a43bce26b6c36bc4f54b9e63713;p=llvm [lib/Object] Rename elf_hash to hashSysV. This is more clear, as we have also GNU hash these days.. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286157 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 595657e58e5..02becfdd042 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -506,7 +506,7 @@ ErrorOr ELFFile::getSectionName(const Elf_Shdr *Section, /// This function returns the hash value for a symbol in the .dynsym section /// Name of the API remains consistent as specified in the libelf /// REF : http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#hash -static inline unsigned elf_hash(StringRef &symbolName) { +static inline unsigned hashSysV(StringRef &symbolName) { unsigned h = 0, g; for (unsigned i = 0, j = symbolName.size(); i < j; i++) { h = (h << 4) + symbolName[i];