Commit 3f0fe23
committed
[clang][NFC] Refactor CodeGen's hasBooleanRepresentation
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 32f2402 commit 3f0fe23
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 | |
|---|---|---|---|
| |||
2769 | 2769 | | |
2770 | 2770 | | |
2771 | 2771 | | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
2772 | 2776 | | |
2773 | 2777 | | |
2774 | 2778 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
1893 | 1893 | | |
1894 | 1894 | | |
1895 | 1895 | | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
1908 | | - | |
1909 | 1896 | | |
1910 | 1897 | | |
1911 | 1898 | | |
| |||
1928 | 1915 | | |
1929 | 1916 | | |
1930 | 1917 | | |
1931 | | - | |
| 1918 | + | |
1932 | 1919 | | |
1933 | 1920 | | |
1934 | 1921 | | |
| |||
1942 | 1929 | | |
1943 | 1930 | | |
1944 | 1931 | | |
1945 | | - | |
| 1932 | + | |
1946 | 1933 | | |
1947 | 1934 | | |
1948 | 1935 | | |
| |||
2070 | 2057 | | |
2071 | 2058 | | |
2072 | 2059 | | |
2073 | | - | |
| 2060 | + | |
2074 | 2061 | | |
2075 | 2062 | | |
2076 | 2063 | | |
| |||
2111 | 2098 | | |
2112 | 2099 | | |
2113 | 2100 | | |
2114 | | - | |
| 2101 | + | |
2115 | 2102 | | |
2116 | 2103 | | |
2117 | 2104 | | |
| |||
2598 | 2585 | | |
2599 | 2586 | | |
2600 | 2587 | | |
2601 | | - | |
| 2588 | + | |
2602 | 2589 | | |
2603 | 2590 | | |
2604 | 2591 | | |
| |||
0 commit comments