Commit 75f6fe2
committed
[MC] Remove unneeded MCSymbolRefExpr::create overload and add comments
The StringRef overload is often error-prone as users might forget to
register the MCSymbol.
Add comments to MCTargetExpr and MCSymbolRefExpr::VariantKind.
In the distant future the VariantKind parameter might be removed.1 parent a6ccda2 commit 75f6fe2
File tree
5 files changed
+19
-22
lines changed- llvm
- include/llvm/MC
- lib
- MC
- Target
- ARM/AsmParser
- Mips/MCTargetDesc
- PowerPC/AsmParser
5 files changed
+19
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
| |||
384 | 389 | | |
385 | 390 | | |
386 | 391 | | |
387 | | - | |
388 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
389 | 395 | | |
390 | 396 | | |
391 | 397 | | |
392 | 398 | | |
393 | | - | |
394 | | - | |
395 | 399 | | |
396 | 400 | | |
397 | 401 | | |
| |||
630 | 634 | | |
631 | 635 | | |
632 | 636 | | |
633 | | - | |
634 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
635 | 641 | | |
636 | 642 | | |
637 | 643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | 249 | | |
255 | 250 | | |
256 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12438 | 12438 | | |
12439 | 12439 | | |
12440 | 12440 | | |
12441 | | - | |
12442 | | - | |
12443 | | - | |
| 12441 | + | |
| 12442 | + | |
| 12443 | + | |
12444 | 12444 | | |
12445 | 12445 | | |
12446 | 12446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1269 | 1269 | | |
1270 | 1270 | | |
1271 | 1271 | | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
| 1272 | + | |
1275 | 1273 | | |
1276 | 1274 | | |
1277 | 1275 | | |
| |||
1282 | 1280 | | |
1283 | 1281 | | |
1284 | 1282 | | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
| 1283 | + | |
1288 | 1284 | | |
1289 | 1285 | | |
1290 | 1286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1539 | 1539 | | |
1540 | 1540 | | |
1541 | 1541 | | |
1542 | | - | |
1543 | | - | |
| 1542 | + | |
| 1543 | + | |
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
| |||
0 commit comments