Commit ecef9d7
libdrgn: get rid of arrays embedded in drgn_type
For C++ support, we need to add an array of template parameters to
struct drgn_type. struct drgn_type already has arrays for members,
enumerators, and parameters embedded at the end of the structure,
because no type needs more than one of those. However, struct, union,
and class types may need members and template parameters. We could add a
separate array of templates, but then it gets confusing having two
methods of storing arrays in struct drgn_type. Let's make these arrays
separate instead of embedding them.1 parent 35bb024 commit ecef9d7
File tree
5 files changed
+250
-298
lines changed- libdrgn
- python
5 files changed
+250
-298
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
449 | 454 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | 455 | | |
459 | 456 | | |
460 | 457 | | |
| |||
606 | 603 | | |
607 | 604 | | |
608 | 605 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | 606 | | |
615 | 607 | | |
616 | 608 | | |
| |||
633 | 625 | | |
634 | 626 | | |
635 | 627 | | |
636 | | - | |
| 628 | + | |
637 | 629 | | |
638 | 630 | | |
639 | 631 | | |
| |||
710 | 702 | | |
711 | 703 | | |
712 | 704 | | |
713 | | - | |
| 705 | + | |
714 | 706 | | |
715 | 707 | | |
716 | 708 | | |
| |||
761 | 753 | | |
762 | 754 | | |
763 | 755 | | |
764 | | - | |
| 756 | + | |
765 | 757 | | |
766 | 758 | | |
767 | 759 | | |
| |||
0 commit comments