Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

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 usinga local clone.

dmd.glue.tocsym

Convert a D symbol to a symbol the linker understands (with mangled name).
Authors:
Walter Bright
License:
Boost License 1.0

Sourcetocsym.d

Documentationhttps://dlang.org/phobos/dmd_tglue_ocsym.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/glue/tocsym.d

package(dmd.glue) Symbol*toSymbolX(Dsymbolds, const(char)*prefix, SCsclass, type*t, const(char)*suffix);
Helper
package(dmd.glue) Symbol*toSymbol(Dsymbols);
package(dmd.glue) Symbol*toImport(Dsymbolds);
Generate import symbol from symbol.
package(dmd.glue) Symbol*toThunkSymbol(FuncDeclarationfd, intoffset);
Thunks adjust the incoming 'this' pointer by 'offset'.
package(dmd.glue) Classsym*fake_classsym(Identifierid);
Fake a struct symbol.
package(dmd.glue) 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.
package(dmd.glue) Symbol*toInitializer(AggregateDeclarationad);
Create the static initializer for the struct/class.
package(dmd.glue) Symbol*toSymbol(StructLiteralExpsle);
package(dmd.glue) 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:
ClassDeclarationcdC++ class
Returns:
symbol of instance of _cpp_type_info_ptr
package(dmd.glue) Symbol*toSymbolCppTypeInfo(ClassDeclarationcd);
Generate Symbol of C++ type info for C++ class cd.
Parameters:
ClassDeclarationcdC++ class
Returns:
Symbol of cd's rtti type info
package(dmd.glue) Symbol*toSymbol(Typet);
Turn a class type into a C Symbol.
Parameters:
Typetclass type
Returns:
corresponding Symbol
package(dmd.glue) nothrow SrcpostoSrcpos(Locloc);
Converts a Loc to backend Srcpos
Parameters:
LoclocSource code location
Returns:
Srcpos backend struct corresponding to the given location
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Sat Feb 21 00:05:09 2026

[8]ページ先頭

©2009-2026 Movatter.jp