change globvar string to real global variable

This commit is contained in:
2025-10-20 21:36:46 +05:30
parent 3b323132f0
commit 56a2fbaf5b
2 changed files with 15 additions and 14 deletions

View File

@ -1,6 +1,7 @@
from enum import Enum, auto
from typing import Any, Dict, List, Optional, TypedDict
from dataclasses import dataclass
import llvmlite.ir as ir
from pythonbpf.vmlinux_parser.dependency_node import Field
@ -32,4 +33,4 @@ class AssignmentInfo(TypedDict):
# The key of the dict is the name of the field.
# Value is a tuple that contains the global variable representing that field
# along with all the information about that field as a Field type.
members: Optional[Dict[str, tuple[str, Field]]] # For structs.
members: Optional[Dict[str, tuple[ir.GlobalVariable, Field]]] # For structs.