可用的回归测试通过的标准版本
This commit is contained in:
@@ -364,12 +364,12 @@ class SymbolTable:
|
||||
OriginalType_kind = 'struct'
|
||||
if OriginalClass in self:
|
||||
OrigTypeInfo = self[OriginalClass]
|
||||
if OrigTypeInfo.TypeCls in (t.CStruct, t.CEnum, t.CUnion):
|
||||
if OrigTypeInfo.TypeCls is t.CStruct:
|
||||
if OrigTypeInfo.type_cls in (t.CStruct, t.CEnum, t.CUnion):
|
||||
if OrigTypeInfo.type_cls is t.CStruct:
|
||||
OriginalType_kind = 'struct'
|
||||
elif OrigTypeInfo.TypeCls is t.CEnum:
|
||||
elif OrigTypeInfo.type_cls is t.CEnum:
|
||||
OriginalType_kind = 'enum'
|
||||
elif OrigTypeInfo.TypeCls is t.CUnion:
|
||||
elif OrigTypeInfo.type_cls is t.CUnion:
|
||||
OriginalType_kind = 'union'
|
||||
|
||||
if prefix == prefixes[0]:
|
||||
@@ -510,7 +510,7 @@ class SymbolTable:
|
||||
except Exception as e:
|
||||
import traceback
|
||||
print(traceback.format_exc())
|
||||
print(f"[SymbolTable Error] Failed to load module: {FilePath} - {e}")
|
||||
print(f"[SymbolTable Error] Failed to Load module: {FilePath} - {e}")
|
||||
return []
|
||||
|
||||
def _GetLLVMTypeStr(self, node):
|
||||
|
||||
Reference in New Issue
Block a user