dmd.toobj
Convert an AST that went through all semantic phases into an object file.
License
Source: toobj.d
Documentation: https://dlang.org/phobos/dmd_toobj.html
-
Declaration
voidwrite_pointers(Typetype, Symbol*s, uintoffset);write pointer references for typed data to the object file a class
typeis considered to mean a reference to a class instanceParameters
Typetypetypeof the data to check for pointersSymbol*ssymbol that contains the data
uintoffsetoffsetof the data inside the Symbol'smemory -
Declaration
voidwrite_instance_pointers(Typetype, Symbol*s, uintoffset);write pointer references for typed data to the object file a class
typeis considered to mean the instance, not a referenceParameters
Typetypetypeof the data to check for pointersSymbol*ssymbol that contains the data
uintoffsetoffsetof the data inside the Symbol'smemory -
Declaration
uintbaseVtblOffset(ClassDeclarationcd, BaseClass*bc);Get offset of base class's vtbl[] initializer from start of csym. Returns ~0 if not this csym.