Commit 9f6c4ed
committed
Switch diagnostic group names to use
Previously, they used a hand-rolled Pascal-string encoding different
from all the other string tables produced from TableGen. This moves them
to use the newly introduced runtime abstraction, and enhances that
abstraction to support iterating over the string table as used in this
case.
From what I can tell the Pascal-string encoding isn't critical here to
avoid expensive `strlen` calls, so I think this is a simpler and more
consistent model. But if folks would prefer a Pascal-string style
encoding, I can instead work to switch the `StringTable` abstraction
towards that. It would require some tricky tradeoffs though to make it
reasonably general: either using 4 bytes instead of 1 byte to encode the
size, or having a fallback to `strlen` for long strings.llvm::StringTable
1 parent 733a98d commit 9f6c4ed
File tree
4 files changed
+69
-30
lines changed- clang
- lib/Basic
- tools/diagtool
- utils/TableGen
- llvm/include/llvm/ADT
4 files changed
+69
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
| 580 | + | |
584 | 581 | | |
585 | 582 | | |
586 | 583 | | |
| |||
627 | 624 | | |
628 | 625 | | |
629 | 626 | | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
635 | 633 | | |
636 | 634 | | |
637 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1782 | 1782 | | |
1783 | 1783 | | |
1784 | 1784 | | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
| 1785 | + | |
1793 | 1786 | | |
1794 | 1787 | | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
1798 | 1791 | | |
1799 | 1792 | | |
1800 | 1793 | | |
| |||
1806 | 1799 | | |
1807 | 1800 | | |
1808 | 1801 | | |
1809 | | - | |
| 1802 | + | |
1810 | 1803 | | |
1811 | 1804 | | |
1812 | 1805 | | |
| |||
1858 | 1851 | | |
1859 | 1852 | | |
1860 | 1853 | | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
| 1854 | + | |
1864 | 1855 | | |
1865 | 1856 | | |
1866 | 1857 | | |
| |||
1948 | 1939 | | |
1949 | 1940 | | |
1950 | 1941 | | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
1951 | 1945 | | |
1952 | | - | |
1953 | | - | |
1954 | | - | |
| 1946 | + | |
1955 | 1947 | | |
1956 | 1948 | | |
1957 | 1949 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| |||
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
72 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
73 | 85 | | |
74 | 86 | | |
| 87 | + | |
| 88 | + | |
75 | 89 | | |
76 | 90 | | |
77 | 91 | | |
| |||
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
87 | 135 | | |
88 | 136 | | |
89 | 137 | | |
| |||
0 commit comments