separate map creation logic

This commit is contained in:
2025-09-08 21:26:27 +05:30
parent 08ff07641e
commit 2a3f367e23
3 changed files with 97 additions and 83 deletions

View File

@ -2,6 +2,7 @@ import ast
from llvmlite import ir
from .license_pass import license_processing
from .functions_pass import func_proc
from .maps_pass import maps_proc
# from .constants_pass import constants_processing
from .globals_pass import globals_processing
@ -26,6 +27,7 @@ def processor(source_code, filename, module):
for func_node in bpf_chunks:
print(f"Found BPF function: {func_node.name}")
maps_proc(tree, module, bpf_chunks)
func_proc(tree, module, bpf_chunks)
# For now, we will parse the BPF specific parts of AST