File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
lldb/source/Plugins/SymbolFile/DWARF Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class SymbolFileDWARF;
26
26
27
27
class DWARFASTParser {
28
28
public:
29
- enum class Kind { DWARFASTParserClang };
29
+ enum class Kind { DWARFASTParserClang, DWARFASTParserSwift };
30
30
DWARFASTParser (Kind kind) : m_kind(kind) {}
31
31
32
32
virtual ~DWARFASTParser () = default ;
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ using namespace lldb_private::dwarf;
40
40
41
41
DWARFASTParserSwift::DWARFASTParserSwift (
42
42
TypeSystemSwiftTypeRef &swift_typesystem)
43
- : m_swift_typesystem(swift_typesystem) {}
43
+ : DWARFASTParser(Kind::DWARFASTParserSwift),
44
+ m_swift_typesystem(swift_typesystem) {}
44
45
45
46
DWARFASTParserSwift::~DWARFASTParserSwift () {}
46
47
Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ class DWARFASTParserSwift : public DWARFASTParser {
67
67
return lldb_private::ConstString ();
68
68
}
69
69
70
+ static bool classof (const DWARFASTParser *Parser) {
71
+ return Parser->GetKind () == Kind::DWARFASTParserSwift;
72
+ }
73
+
70
74
protected:
71
75
lldb_private::TypeSystemSwiftTypeRef &m_swift_typesystem;
72
76
};
You can’t perform that action at this time.
0 commit comments