| 39 | |
| 40 | constexpr std::span<const std::string_view> prefixes(unsigned offset) { |
| 41 | switch(offset) { |
| 42 | case 0: return eo::pfx_none; |
| 43 | case 1: return eo::pfx_dash; |
| 44 | case 3: return eo::pfx_dash_double; |
| 45 | case 6: return eo::pfx_double; |
| 46 | case 8: return eo::pfx_all; |
| 47 | case 12: return eo::pfx_slash_dash; |
| 48 | default: std::unreachable(); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | constexpr std::string_view str_at(unsigned offset) { |
| 53 | auto ref = OptionStrTable[llvm::StringTable::Offset(offset)]; |
| 54 | return {ref.data(), ref.size()}; |