MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / codegen_debug_info

Function codegen_debug_info

blakcomp/codegen.c:130–143  ·  view source on GitHub ↗

/ * codegen_debug_info: Write out debugging info. */

Source from the content-addressed store, hash-verified

128 * codegen_debug_info: Write out debugging info.
129 */
130void codegen_debug_info(void)
131{
132 list_type l;
133
134 OutputInt(outfile, list_length(debug_lines));
135
136 for (l = debug_lines; l != NULL; l = l->next)
137 {
138 DebugLine *d = (DebugLine *) (l->data);
139 OutputInt(outfile, d->offset);
140 OutputInt(outfile, d->lineno);
141 }
142 debug_lines = list_destroy(debug_lines);
143}
144/************************************************************************/
145/*
146 * codegen_filename: Write out given filename.

Callers 1

codegenFunction · 0.85

Calls 3

OutputIntFunction · 0.85
list_lengthFunction · 0.70
list_destroyFunction · 0.70

Tested by

no test coverage detected