进行了优化,减少了上帝结构体的符号表占用
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user