[lib/Object] Rename elf_hash to hashSysV.
authorDavide Italiano <davide@freebsd.org>
Mon, 7 Nov 2016 21:56:04 +0000 (21:56 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 7 Nov 2016 21:56:04 +0000 (21:56 +0000)
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

include/llvm/Object/ELF.h

index 595657e58e5f83fc2f58c76e17eab519b7fff9d0..02becfdd042b5baf1126b4957cea5159e2c53e7c 100644 (file)
@@ -506,7 +506,7 @@ ErrorOr<StringRef> ELFFile<ELFT>::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];