Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

dmd.todt

Put initializers and objects created from CTFE into a dt_t data structure so the backend puts them into the data segment.
Authors:

Source todt.d

void cpp_type_info_ptr_toDt(ClassDeclaration cd, ref DtBuilder dtb);
Generate data for instance of _cpp_type_info_ptr that refers to the C++ RTTI symbol for cd.
Parameters:
ClassDeclaration cd C++ class
DtBuilder dtb data table builder