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
void
write_pointers
(Typetype
, Symbol*s
, uintoffset
);write pointer references for typed data to the object file a class
type
is considered to mean a reference to a class instanceParameters
Type
type
type
of the data to check for pointersSymbol*
s
symbol that contains the data
uint
offset
offset
of the data inside the Symbol's
memory -
Declaration
void
write_instance_pointers
(Typetype
, Symbol*s
, uintoffset
);write pointer references for typed data to the object file a class
type
is considered to mean the instance, not a referenceParameters
Type
type
type
of the data to check for pointersSymbol*
s
symbol that contains the data
uint
offset
offset
of the data inside the Symbol's
memory -
Declaration
void
TypeInfo_toObjFile
(Expressione
, const ref Locloc
, Typet
);Put out instance of the
TypeInfo
object associated with
if it hasn't
t
already been generatedParameters
Expression
e
if not
null
, then expression for pretty-printing errorsLoc
loc
the location for reporting line numbers in errors
Type
t
the type to generate the
TypeInfo
object for -
Declaration
uint
baseVtblOffset
(ClassDeclarationcd
, BaseClass*bc
);Get offset of base class's vtbl[] initializer from start of csym. Returns ~0 if not this csym.