Skip to content

Commit dc7a127

Browse files
committed
Restructure dir for functions
1 parent 552cd35 commit dc7a127

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

pythonbpf/codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ast
22
from llvmlite import ir
33
from .license_pass import license_processing
4-
from .functions_pass import func_proc
4+
from .functions import func_proc
55
from .maps import maps_proc
66
from .structs import structs_proc
77
from .globals_pass import globals_processing

pythonbpf/functions/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .functions_pass import func_proc
2+
3+
__all__ = ["func_proc"]

pythonbpf/functions_pass.py renamed to pythonbpf/functions/functions_pass.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from typing import Any
55
from dataclasses import dataclass
66

7-
from .helper import HelperHandlerRegistry, handle_helper_call
8-
from .type_deducer import ctypes_to_ir
9-
from .binary_ops import handle_binary_op
10-
from .expr_pass import eval_expr, handle_expr
7+
from pythonbpf.helper import HelperHandlerRegistry, handle_helper_call
8+
from pythonbpf.type_deducer import ctypes_to_ir
9+
from pythonbpf.binary_ops import handle_binary_op
10+
from pythonbpf.expr_pass import eval_expr, handle_expr
1111

1212
logger = logging.getLogger(__name__)
1313

0 commit comments

Comments
 (0)