[PATCH] D148379: [elf] adjust sysv hash return type
Nathan Sidwell via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 18 15:20:49 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4aeb12794bb7: [ELF] hash fn return type (authored by urnathan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148379/new/
https://reviews.llvm.org/D148379
Files:
llvm/include/llvm/Object/ELF.h
Index: llvm/include/llvm/Object/ELF.h
===================================================================
--- llvm/include/llvm/Object/ELF.h
+++ llvm/include/llvm/Object/ELF.h
@@ -1236,7 +1236,7 @@
/// 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
-inline unsigned hashSysV(StringRef SymbolName) {
+inline uint32_t hashSysV(StringRef SymbolName) {
uint32_t H = 0;
for (uint8_t C : SymbolName) {
H = (H << 4) + C;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148379.514757.patch
Type: text/x-patch
Size: 594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230418/e9f831ad/attachment.bin>
More information about the llvm-commits
mailing list