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.tocsym
Convert a D symbol to a symbol the linker understands (with mangled name).
Authors:
License:
Source tocsym.d
Documentation https://dlang.org/phobos/dmd_tocsym.html
- Symbol*
toSymbolX(Dsymbolds, const(char)*prefix, SCsclass, type*t, const(char)*suffix); - Helper
- Symbol*
toSymbol(Dsymbols); - Symbol*
toImport(Dsymbolds); - Generate import symbol from symbol.
- Symbol*
toThunkSymbol(FuncDeclarationfd, intoffset); - Thunks adjust the incoming 'this' pointer by 'offset'.
- Classsym*
fake_classsym(Identifierid); - Fake a struct symbol.
- Symbol*
toVtblSymbol(ClassDeclarationcd, boolgenCsymbol= true); - This is accessible via the ClassData, but since it is frequently needed directly (like for rtti comparisons), make it directly accessible.
- Symbol*
toInitializer(AggregateDeclarationad); - Create the static initializer for the struct/class.
- Symbol*
toSymbol(StructLiteralExpsle); - Symbol*
toSymbolCpp(ClassDeclarationcd); - For C++ class cd, generate an instance of _cpp_type_info_ptr and populate it with a pointer to the C++ type info.Parameters:
ClassDeclaration cdC++ class Returns:symbol of instance of _cpp_type_info_ptr - Symbol*
toSymbolCppTypeInfo(ClassDeclarationcd); - Generate Symbol of C++ type info for C++ class cd.Parameters:
ClassDeclaration cdC++ class Returns:Symbol of cd's rtti type info - Symbol*
toSymbol(Typet); - Turn a class type into a C Symbol.Parameters:
Type tclass type Returns:corresponding Symbol - nothrow Srcpos
toSrcpos(Locloc); - Converts a Loc to backend SrcposParameters:
Loc locSource code location Returns:Srcpos backend struct corresponding to the given location
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:28:09 2025