djbHash() is so small that we should always inline.
Details
Diff Detail
- Build Status
Buildable 15316 Build 15316: arc lint + arc unit
Event Timeline
Sorry, I missed this one, I'll have to configure my email filters better.
llvm/lib/Support/DJB.cpp | ||
---|---|---|
22–24 | It may be better to put this in the header as well (perhaps in a detail namespace) so you don't have to manually inline it below, but that's just splitting hairs. I am fine with this option as well. |
llvm/lib/Support/DJB.cpp | ||
---|---|---|
22–24 | Honestly I don't think this isn't worth to be in the header as (1) there is no situation in which you want to use this function independently, and (2) this is extremely small, and (3) it is not intended to change. So I'm more comfortable to just inline it just like I did in this patch. |
It may be better to put this in the header as well (perhaps in a detail namespace) so you don't have to manually inline it below, but that's just splitting hairs. I am fine with this option as well.