[llvm] r286157 - [lib/Object] Rename elf_hash to hashSysV.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 7 13:56:05 PST 2016
Author: davide
Date: Mon Nov 7 15:56:04 2016
New Revision: 286157
URL: http://llvm.org/viewvc/llvm-project?rev=286157&view=rev
Log:
[lib/Object] Rename elf_hash to hashSysV.
This is more clear, as we have also GNU hash these days..
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=286157&r1=286156&r2=286157&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Mon Nov 7 15:56:04 2016
@@ -506,7 +506,7 @@ ErrorOr<StringRef> ELFFile<ELFT>::getSec
/// 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];
More information about the llvm-commits
mailing list