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.tocvdebug

Generate debug info in the CV4 debug format.
Authors:
Walter Bright
License:
Boost License 1.0

Sourcetocvdebug.d

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

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

package(dmd.glue) pure nothrow @nogc @safe uintvisibilityToCVAttr(Visibility.Kindvis);
CV4 pg. 25 Convert D visibility attribute to cv attribute.
package(dmd.glue) uintcv_align(ubyte*p, uintn);
Align and pad.
Returns:
aligned count
package(dmd.glue) voidcv_udt(const char*id, uinttypidx);
write a UDT record to the object file
Parameters:
char*idname of user defined type
uinttypidxtype index
package(dmd.glue) voidtoDebug(EnumDeclarationed);
Emit symbolic debug info in CV format.
structCvFieldList;
Helper struct for field list records LF_FIELDLIST/LF_FIELDLIST_V2
if the size exceeds the maximum length of a record, the last entry is an LF_INDEX entry with the type index pointing to the next field list record
Processing is done in two phases:
Phase 1: computing the size of the field list and distributing it over multiple records
  • construct CvFieldList with some precalculated field count/length
  • for each field, call count(length of field)
Phase 2: write the actual data
  • call alloc() to allocate debtyp's
  • for each field,
    • call writePtr() to get a pointer into the current debtyp
    • fill memory with field data
    • call written(length of field)
  • call debtyp() to create type records and return the index of the first one
package(dmd.glue) intcvMember(Dsymbols, ubyte*p);
Insert CV info into *p.
Returns:
number of bytes written, or that would be written if p==null
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 12:29:36 2026

[8]ページ先頭

©2009-2026 Movatter.jp