diff options
author | Jason Ekstrand <[email protected]> | 2017-09-20 08:25:05 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-03-07 12:13:47 -0800 |
commit | a4ca4c99ba8d594a58c862503b0f9f52c0e6e4b7 (patch) | |
tree | 1696057b3363f6f3963044c3053ca93c3ab40d8d /build-support | |
parent | 3960d0e3329657202abaf2ffd4f4dc32b63c58b0 (diff) |
anv/entrypoints: Generalize the string map a bit
The original string map assumed that the mapping from strings to
entrypoints was a bijection. This will not be true the moment we
add entrypoint aliasing. This reworks things to be an arbitrary map
from strings to non-negative signed integers. The old one also had a
potential bug if we ever had a hash collision because it didn't do the
strcmp inside the lookup loop. While we're at it, we break things out
into a helpful class.
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'build-support')
0 files changed, 0 insertions, 0 deletions