summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-11-07 21:56:04 +0000
committerDavide Italiano <davide@freebsd.org>2016-11-07 21:56:04 +0000
commitdacb058fd6f9c5b6bf6b04db98572b5afd5a32c7 (patch)
treed4dad8efba270105a1c877bbc8a180f120944f97
parenta29ae6f2d721f71635d6379d2d012ca2fc33ce5f (diff)
downloadbcm5719-llvm-dacb058fd6f9c5b6bf6b04db98572b5afd5a32c7.tar.gz
bcm5719-llvm-dacb058fd6f9c5b6bf6b04db98572b5afd5a32c7.zip
[lib/Object] Rename elf_hash to hashSysV.
This is more clear, as we have also GNU hash these days.. llvm-svn: 286157
-rw-r--r--llvm/include/llvm/Object/ELF.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Object/ELF.h b/llvm/include/llvm/Object/ELF.h
index 595657e58e5..02becfdd042 100644
--- a/llvm/include/llvm/Object/ELF.h
+++ b/llvm/include/llvm/Object/ELF.h
@@ -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];
OpenPOWER on IntegriCloud