Compute the offset of this DIE and all its children.
Synopsis
Declared in <llvm/CodeGen/DIE.h>
unsigned int
computeOffsetsAndAbbrevs(
dwarf::FormParams const& FormParams,
DIEAbbrevSet& AbbrevSet,
unsigned int CUOffset);
Description
This function gets called just before we are going to generate the debug information and gives each DIE a chance to figure out its CU relative DIE offset, unique its abbreviation and fill in the abbreviation code, and return the unit offset that points to where the next DIE will be emitted within the debug unit section. After this function has been called for all DIE objects, the DWARF can be generated since all DIEs will be able to properly refer to other DIE objects since all DIEs have calculated their offsets.
Return Value
the offset for the DIE that follows this DIE within the current compile/type unit.
Parameters
Name |
Description |
FormParams |
Used when calculating sizes. |
AbbrevSet |
the abbreviation used to unique DIE abbreviations. |
CUOffset |
the compile/type unit relative offset in bytes. |
Created with MrDocs