Commit 3868aaa
committed
[lldb] Factor out iteration over runtime types from GetChildCompilerTypeAtIndex()
This patch introduces a new class SwiftRuntimeTypeVisitor that exists
to unify iteration over runtime type information. The visitor callback
has closure parameters that can be called to make additional expensive
queries on a child.
TODO: This is not the final evolution step.
- We probably should remove the "depth" parameter entirely and implement the access path computation for GetIndexOfChildMemberWithName at a different layer.
- We could cache the results for the last execution context.1 parent bc3f984 commit 3868aaa
File tree
6 files changed
+797
-629
lines changed- lldb
- source/Plugins/LanguageRuntime/Swift
- test/API/lang/swift
- clangimporter/objc_protocol_fields
- variables/protocol
6 files changed
+797
-629
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments