Skip to content

Commit 69bee5f

Browse files
committed
Seperate LocalSymbol from functions
1 parent 2f1aaa4 commit 69bee5f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

pythonbpf/local_symbol.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from llvm import ir
2+
from dataclasses import dataclass
3+
from typing import Any
4+
5+
6+
@dataclass
7+
class LocalSymbol:
8+
var: ir.AllocaInstr
9+
ir_type: ir.Type
10+
metadata: Any = None
11+
12+
def __iter__(self):
13+
yield self.var
14+
yield self.ir_type
15+
yield self.metadata

0 commit comments

Comments
 (0)