Skip to content

Commit 922d587

Browse files
committed
comment: LLDB can find it through type metadata
1 parent 094fdb3 commit 922d587

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lldb/test/API/lang/swift/parseable_interfaces/dsym/TestSwiftInterfaceDsym.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def test_dsym_swiftinterface(self):
6363
child_y = var.GetChildMemberWithName("y") # MyPoint.y is public
6464
lldbutil.check_variable(self, child_y, False, value="0")
6565

66-
child_x = var.GetChildMemberWithName("x") # MyPoint.x isn't public
66+
# MyPoint.x isn't public, but LLDB can find it through type metadata.
67+
child_x = var.GetChildMemberWithName("x")
6768
self.assertTrue(child_x.IsValid())
6869

6970
# Expression evaluation using types from the .swiftinterface only

lldb/test/API/lang/swift/parseable_interfaces/shared/TestSwiftInterfaceNoDebugInfo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def do_test(self):
128128
child_y = var.GetChildMemberWithName("y") # MyPoint.y is public
129129
lldbutil.check_variable(self, child_y, False, value="0")
130130

131-
child_x = var.GetChildMemberWithName("x") # MyPoint.x isn't public
131+
# MyPoint.x isn't public, but LLDB can find it through type metadata.
132+
child_x = var.GetChildMemberWithName("x")
132133
self.assertTrue(child_x.IsValid())
133134

134135
# Expression evaluation using types from the .swiftinterface only

lldb/test/API/lang/swift/parseable_interfaces/static/TestSwiftInterfaceStaticNoDebugInfo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def do_test(self):
7474
child_y = var.GetChildMemberWithName("y") # MyPoint.y is public
7575
lldbutil.check_variable(self, child_y, False, value="0")
7676

77-
child_x = var.GetChildMemberWithName("x") # MyPoint.x isn't public
77+
# MyPoint.x isn't public, but LLDB can find it through type metadata.
78+
child_x = var.GetChildMemberWithName("x")
7879
self.assertTrue(child_x.IsValid())
7980

8081
# Expression evaluation using types from the .swiftinterface only

0 commit comments

Comments
 (0)