进行了优化,减少了上帝结构体的符号表占用

This commit is contained in:
2026-06-18 22:12:14 +08:00
parent d7b98cc9c5
commit 19f2787db0
32 changed files with 1245 additions and 1083 deletions

View File

@@ -23,7 +23,7 @@ class WithHandle(BaseHandle):
elif isinstance(context_expr.func, ast.Attribute):
ClassName = context_expr.func.attr
if ClassName and ClassName not in Gen.structs:
if ClassName in self.Trans.SymbolTable:
if self.Trans.SymbolTable.has(ClassName):
SymInfo = self.Trans.SymbolTable[ClassName]
if SymInfo.IsStruct or SymInfo.IsRenum:
pass