Commit cee3d04
committed
[llvm][DebugInfo] Add support for _BitInt in DWARFTypePrinter
As of recent, LLVM includes the bit-size as a `DW_AT_bit_size` (and as part of `DW_AT_name`) of `_BitInt`s in DWARF. This allows us to mark `_BitInt`s as "reconstitutable" when compiling with `-gsimple-template-names`. However, before doing so we need to make sure the `DWARFTypePrinter` can reconstruct template parameter values that have `_BitInt` type. This patch adds support for printing `DW_TAG_template_value_parameter`s that have `_BitInt` type. Since `-gsimple-template-names` only omits template parameters that are `<= 64` bit wide, we don't support `_BitInt`s larger than 64 bits.1 parent f45bb98 commit cee3d04
File tree
4 files changed
+6227
-5748
lines changed- cross-project-tests/debuginfo-tests/clang_llvm_roundtrip
- llvm
- include/llvm/DebugInfo/DWARF
- test/tools/llvm-dwarfdump/X86
- unittests/DebugInfo/DWARF
4 files changed
+6227
-5748
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
328 | | - | |
329 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
| |||
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
416 | 447 | | |
417 | 448 | | |
418 | 449 | | |
| |||
438 | 469 | | |
439 | 470 | | |
440 | 471 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | 472 | | |
445 | | - | |
| 473 | + | |
446 | 474 | | |
447 | 475 | | |
| 476 | + | |
448 | 477 | | |
449 | 478 | | |
450 | 479 | | |
| |||
539 | 568 | | |
540 | 569 | | |
541 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
542 | 577 | | |
543 | 578 | | |
544 | 579 | | |
| |||
0 commit comments