This removes the HashString function from StringExtraces and replaces
its uses with calls to djbHash from DJB.h, also in Support.
Details
Details
- Reviewers
aprantl labath ruiu dblaikie - Commits
- rG560ce2c70fb1: Re-land: "[Support] Replace HashString with djbHash."
rLLDB326091: Re-land: "[Support] Replace HashString with djbHash."
rC326091: Re-land: "[Support] Replace HashString with djbHash."
rL326091: Re-land: "[Support] Replace HashString with djbHash."
rLLD326091: Re-land: "[Support] Replace HashString with djbHash."
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Do we need to worry about performance on non-LTO builds because HashString won't be inlined any more?
I'm leaning towards no.
Comment Actions
Also please be sure to not land this before we fixed the implementation of llvm::djbHash() to use unsigned chars or else this isn't NFC.
Comment Actions
The HashString function used a different initial value (0 vs 5381), so this is still not fully NFC, but I hope that does not matter.