mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Comment out non string based decorator to decide later and also make
changes to decorator adding a "section"
This commit is contained in:
@ -33,9 +33,10 @@ def globals_processing(tree, module: ir.Module):
|
||||
if (
|
||||
isinstance(dec, ast.Call)
|
||||
and isinstance(dec.func, ast.Name)
|
||||
and dec.func.id == "section"
|
||||
and len(dec.args) == 1
|
||||
and isinstance(dec.args[0], ast.Attribute)
|
||||
and isinstance(dec.args[0].value, ast.Name)
|
||||
and isinstance(dec.args[0], ast.Constant)
|
||||
and isinstance(dec.args[0].value, str)
|
||||
):
|
||||
collected.append(node.name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user