| 87 | } |
| 88 | |
| 89 | static ASMJIT_INLINE void Section_init_data(Section* section, uint32_t section_id, SectionFlags flags, uint32_t alignment, int order) noexcept { |
| 90 | section->_section_id = section_id; |
| 91 | |
| 92 | // These two fields are not used by sections (see \ref LabelEntry for more details about why). |
| 93 | section->_internal_label_type = LabelType::kAnonymous; |
| 94 | section->_internal_label_flags = LabelFlags::kNone; |
| 95 | |
| 96 | section->assign_flags(flags); |
| 97 | section->_alignment = alignment; |
| 98 | section->_order = order; |
| 99 | section->_offset = 0; |
| 100 | section->_virtual_size = 0; |
| 101 | } |
| 102 | |
| 103 | static ASMJIT_INLINE void Section_init_buffer(Section* section) noexcept { |
| 104 | section->_buffer = CodeBuffer{}; |
no test coverage detected