进行了优化,减少了上帝结构体的符号表占用
This commit is contained in:
@@ -205,7 +205,7 @@ class StructGenMixin:
|
||||
all_classes = set(self.class_methods.keys()) | set(self.class_members.keys())
|
||||
for ClassName in all_classes:
|
||||
is_packed = ClassName in self.class_packed
|
||||
if hasattr(self, 'SymbolTable') and self.SymbolTable and ClassName in self.SymbolTable:
|
||||
if hasattr(self, 'SymbolTable') and self.SymbolTable and self.SymbolTable.has(ClassName):
|
||||
Entry = self.SymbolTable[ClassName]
|
||||
if Entry.IsExceptionClass:
|
||||
continue
|
||||
@@ -302,7 +302,7 @@ class StructGenMixin:
|
||||
|
||||
# Step 4: 创建最终的 structs 并设置正确的成员类型
|
||||
for ClassName in all_classes:
|
||||
if hasattr(self, 'SymbolTable') and self.SymbolTable and ClassName in self.SymbolTable:
|
||||
if hasattr(self, 'SymbolTable') and self.SymbolTable and self.SymbolTable.has(ClassName):
|
||||
Entry = self.SymbolTable[ClassName]
|
||||
if Entry.IsExceptionClass:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user