llvm.org GIT mirror llvm / 8b2824a
reflect comment to the official reference git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177895 91177308-0d34-0410-b5e6-96231b3b80d8 Shankar Easwaran 7 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
27052705
27062706 /// This function returns the hash value for a symbol in the .dynsym section
27072707 /// Name of the API remains consistent as specified in the libelf
2708 /// REF : http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx
2708 /// REF : http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#hash
27092709 static inline unsigned elf_hash(StringRef &symbolName) {
27102710 unsigned h = 0, g;
27112711 for (unsigned i = 0; i < symbolName.size(); i++) {