Commit 13aac46
authored
[clang][NFC] Refactor CodeGen's hasBooleanRepresentation (llvm#134159)
The ClangIR upstreaming project needs the same logic for
hasBooleanRepresentation() that is currently implemented in the standard
clang codegen. In order to share this code, this change moves the
implementation of this function into the AST Type class.
No functional change is intended by this change. The ClangIR use of this
function will be added separately in a later change.1 parent 4f902d2 commit 13aac46
File tree
3 files changed
+22
-18
lines changed- clang
- include/clang/AST
- lib
- AST
- CodeGen
3 files changed
+22
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2760 | 2760 | | |
2761 | 2761 | | |
2762 | 2762 | | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
2763 | 2767 | | |
2764 | 2768 | | |
2765 | 2769 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2334 | 2334 | | |
2335 | 2335 | | |
2336 | 2336 | | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2337 | 2350 | | |
2338 | 2351 | | |
2339 | 2352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1896 | 1896 | | |
1897 | 1897 | | |
1898 | 1898 | | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | | - | |
1911 | | - | |
1912 | 1899 | | |
1913 | 1900 | | |
1914 | 1901 | | |
| |||
1931 | 1918 | | |
1932 | 1919 | | |
1933 | 1920 | | |
1934 | | - | |
| 1921 | + | |
1935 | 1922 | | |
1936 | 1923 | | |
1937 | 1924 | | |
| |||
1945 | 1932 | | |
1946 | 1933 | | |
1947 | 1934 | | |
1948 | | - | |
| 1935 | + | |
1949 | 1936 | | |
1950 | 1937 | | |
1951 | 1938 | | |
| |||
2073 | 2060 | | |
2074 | 2061 | | |
2075 | 2062 | | |
2076 | | - | |
| 2063 | + | |
2077 | 2064 | | |
2078 | 2065 | | |
2079 | 2066 | | |
| |||
2114 | 2101 | | |
2115 | 2102 | | |
2116 | 2103 | | |
2117 | | - | |
| 2104 | + | |
2118 | 2105 | | |
2119 | 2106 | | |
2120 | 2107 | | |
| |||
2601 | 2588 | | |
2602 | 2589 | | |
2603 | 2590 | | |
2604 | | - | |
| 2591 | + | |
2605 | 2592 | | |
2606 | 2593 | | |
2607 | 2594 | | |
| |||
0 commit comments