mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Remove useless args from handle_return
This commit is contained in:
@ -351,9 +351,7 @@ def handle_if(
|
|||||||
builder.position_at_end(merge_block)
|
builder.position_at_end(merge_block)
|
||||||
|
|
||||||
|
|
||||||
def handle_return(
|
def handle_return(builder, stmt, local_sym_tab, ret_type):
|
||||||
func, module, builder, stmt, map_sym_tab, local_sym_tab, struct_sym_tab, ret_type
|
|
||||||
):
|
|
||||||
if stmt.value is None:
|
if stmt.value is None:
|
||||||
builder.ret(ir.Constant(ir.IntType(64), 0))
|
builder.ret(ir.Constant(ir.IntType(64), 0))
|
||||||
return True
|
return True
|
||||||
@ -444,13 +442,9 @@ def process_stmt(
|
|||||||
)
|
)
|
||||||
elif isinstance(stmt, ast.Return):
|
elif isinstance(stmt, ast.Return):
|
||||||
did_return = handle_return(
|
did_return = handle_return(
|
||||||
func,
|
|
||||||
module,
|
|
||||||
builder,
|
builder,
|
||||||
stmt,
|
stmt,
|
||||||
map_sym_tab,
|
|
||||||
local_sym_tab,
|
local_sym_tab,
|
||||||
structs_sym_tab,
|
|
||||||
ret_type,
|
ret_type,
|
||||||
)
|
)
|
||||||
return did_return
|
return did_return
|
||||||
|
|||||||
0
pythonbpf/functions/return_utils.py
Normal file
0
pythonbpf/functions/return_utils.py
Normal file
Reference in New Issue
Block a user