do not emit global vars for decls

This commit is contained in:
Nikita Smith
2025-11-21 16:10:28 -08:00
parent 533e7431e7
commit 6fa71607e2
+4
View File
@@ -2480,6 +2480,10 @@ d2r_convert_symbols(Arena *arena,
// are declared in global scope without a name
if (name.size == 0) { break; }
// decls do not have location info
B32 is_decl = dw_flag_from_tag_attrib_kind(input, cu, tag, DW_AttribKind_Declaration);
if (is_decl) { break; }
U64 voff = max_U64;
B32 is_thread_var = 0;
{