Commit 7d8b50a
authored
[clang][fat-lto-objects] Make module flags match non-FatLTO pipelines (#83159)
In addition to being rather hard to follow, there isn't a good reason why FatLTO shouldn't just share the same code for setting module flags for (Thin)LTO. This patch simplifies the logic and makes sure we use set these flags in a consistent way, independent of FatLTO. Additionally, we now test that output in the .llvm.lto section actually matches the output from Full and Thin LTO compilation.1 parent daf3079 commit 7d8b50a
File tree
2 files changed
+36
-17
lines changed- clang
- lib/CodeGen
- test/CodeGen
2 files changed
+36
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
189 | 197 | | |
190 | 198 | | |
191 | 199 | | |
| |||
1036 | 1044 | | |
1037 | 1045 | | |
1038 | 1046 | | |
1039 | | - | |
| 1047 | + | |
| 1048 | + | |
1040 | 1049 | | |
1041 | 1050 | | |
1042 | 1051 | | |
| |||
1047 | 1056 | | |
1048 | 1057 | | |
1049 | 1058 | | |
1050 | | - | |
1051 | | - | |
1052 | 1059 | | |
1053 | 1060 | | |
1054 | | - | |
| 1061 | + | |
1055 | 1062 | | |
1056 | 1063 | | |
1057 | 1064 | | |
| |||
1065 | 1072 | | |
1066 | 1073 | | |
1067 | 1074 | | |
1068 | | - | |
1069 | | - | |
1070 | 1075 | | |
1071 | | - | |
| 1076 | + | |
1072 | 1077 | | |
1073 | 1078 | | |
1074 | | - | |
| 1079 | + | |
1075 | 1080 | | |
1076 | 1081 | | |
| 1082 | + | |
1077 | 1083 | | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
| 1084 | + | |
| 1085 | + | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
37 | 53 | | |
38 | 54 | | |
39 | 55 | | |
| |||
51 | 67 | | |
52 | 68 | | |
53 | 69 | | |
| 70 | + | |
| 71 | + | |
54 | 72 | | |
| 73 | + | |
55 | 74 | | |
56 | 75 | | |
0 commit comments