MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / CodeHolder_add_text_section

Function CodeHolder_add_text_section

lib/asmjit/asmjit/core/codeholder.cpp:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123static ASMJIT_INLINE void CodeHolder_add_text_section(CodeHolder* self) noexcept {
124 Section* text_section = &self->_text_section;
125
126 Section_init_data(text_section, 0u, SectionFlags::kExecutable | SectionFlags::kReadOnly | SectionFlags::kBuiltIn, 0u, 0);
127 Section_init_name(text_section, '.', 't', 'e', 'x', 't');
128
129 self->_sections.append_unchecked(text_section);
130 self->_sections_by_order.append_unchecked(text_section);
131}
132
133static ASMJIT_NOINLINE void CodeHolder_detach_emitters(CodeHolder* self) noexcept {
134 BaseEmitter* emitter = self->_attached_first;

Callers 2

initMethod · 0.85
reinitMethod · 0.85

Calls 3

Section_init_dataFunction · 0.85
Section_init_nameFunction · 0.85
append_uncheckedMethod · 0.80

Tested by

no test coverage detected