File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,8 @@ class RustASTContext : public TypeSystem {
268
268
lldb::Format GetFormat (lldb::opaque_compiler_type_t type) override ;
269
269
270
270
uint32_t GetNumChildren (lldb::opaque_compiler_type_t type,
271
- bool omit_empty_base_classes) override ;
271
+ bool omit_empty_base_classes,
272
+ const ExecutionContext *exe_ctx) override ;
272
273
273
274
lldb::BasicType
274
275
GetBasicTypeEnumeration (lldb::opaque_compiler_type_t type) override ;
Original file line number Diff line number Diff line change @@ -1407,22 +1407,23 @@ size_t RustASTContext::GetTypeBitAlign(lldb::opaque_compiler_type_t type) {
1407
1407
}
1408
1408
1409
1409
uint32_t RustASTContext::GetNumChildren (lldb::opaque_compiler_type_t type,
1410
- bool omit_empty_base_classes) {
1410
+ bool omit_empty_base_classes,
1411
+ const ExecutionContext *exe_ctx) {
1411
1412
if (!type)
1412
1413
return 0 ;
1413
1414
1414
1415
RustType *t = static_cast <RustType *>(type);
1415
1416
uint32_t result = 0 ;
1416
1417
if (RustPointer *ptr = t->AsPointer ()) {
1417
- result = ptr->PointeeType ().GetNumChildren (omit_empty_base_classes);
1418
+ result = ptr->PointeeType ().GetNumChildren (omit_empty_base_classes, exe_ctx );
1418
1419
// If the pointee is not an aggregate, return 1 because the
1419
1420
// pointer has a child. Not totally sure this makes sense.
1420
1421
if (result == 0 )
1421
1422
result = 1 ;
1422
1423
} else if (RustArray *array = t->AsArray ()) {
1423
1424
result = array->Length ();
1424
1425
} else if (RustTypedef *typ = t->AsTypedef ()) {
1425
- result = typ->UnderlyingType ().GetNumChildren (omit_empty_base_classes);
1426
+ result = typ->UnderlyingType ().GetNumChildren (omit_empty_base_classes, exe_ctx );
1426
1427
} else if (RustAggregateBase *agg = t->AsAggregate ()) {
1427
1428
result = agg->FieldCount ();
1428
1429
}
You can’t perform that action at this time.
0 commit comments