From df3f00261abf8f586b2645151f0881d30f3cd93a Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Sat, 4 Oct 2025 08:17:16 +0530 Subject: [PATCH] changer order of passes --- pythonbpf/codegen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pythonbpf/codegen.py b/pythonbpf/codegen.py index e0cb7b6..3b8f76a 100644 --- a/pythonbpf/codegen.py +++ b/pythonbpf/codegen.py @@ -40,12 +40,13 @@ def processor(source_code, filename, module): for func_node in bpf_chunks: logger.info(f"Found BPF function/struct: {func_node.name}") + license_processing(tree, module) + globals_processing(tree, module) + structs_sym_tab = structs_proc(tree, module, bpf_chunks) map_sym_tab = maps_proc(tree, module, bpf_chunks) func_proc(tree, module, bpf_chunks, map_sym_tab, structs_sym_tab) - license_processing(tree, module) - globals_processing(tree, module) globals_list_creation(tree, module)