Skip to content

Commit df3f002

Browse files
changer order of passes
1 parent ab61014 commit df3f002

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonbpf/codegen.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ def processor(source_code, filename, module):
4040
for func_node in bpf_chunks:
4141
logger.info(f"Found BPF function/struct: {func_node.name}")
4242

43+
license_processing(tree, module)
44+
globals_processing(tree, module)
45+
4346
structs_sym_tab = structs_proc(tree, module, bpf_chunks)
4447
map_sym_tab = maps_proc(tree, module, bpf_chunks)
4548
func_proc(tree, module, bpf_chunks, map_sym_tab, structs_sym_tab)
4649

47-
license_processing(tree, module)
48-
globals_processing(tree, module)
4950
globals_list_creation(tree, module)
5051

5152

0 commit comments

Comments
 (0)