Commit f30c891
authored
[lldb] Analyze enum promotion type during parsing (#115005)
The information about an enum's best promotion type is discarded after
compilation and is not present in debug info. This patch repeats the
same analysis of each enum value as in the front-end to determine the
best promotion type during DWARF info parsing.
Fixes #869891 parent e750c7e commit f30c891
File tree
4 files changed
+71
-17
lines changed- lldb
- source/Plugins/TypeSystem/Clang
- test/API/lang/cpp/enum_promotion
4 files changed
+71
-17
lines changedLines changed: 10 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8474 | 8474 | | |
8475 | 8475 | | |
8476 | 8476 | | |
8477 | | - | |
8478 | | - | |
8479 | | - | |
8480 | | - | |
8481 | 8477 | | |
8482 | 8478 | | |
8483 | | - | |
| 8479 | + | |
| 8480 | + | |
8484 | 8481 | | |
| 8482 | + | |
| 8483 | + | |
| 8484 | + | |
8485 | 8485 | | |
8486 | | - | |
8487 | | - | |
8488 | | - | |
8489 | | - | |
8490 | | - | |
8491 | | - | |
8492 | | - | |
8493 | | - | |
8494 | | - | |
8495 | | - | |
8496 | | - | |
| 8486 | + | |
| 8487 | + | |
| 8488 | + | |
| 8489 | + | |
8497 | 8490 | | |
8498 | 8491 | | |
8499 | | - | |
| 8492 | + | |
8500 | 8493 | | |
8501 | 8494 | | |
8502 | 8495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments