@@ -178,8 +178,8 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertBoxedSequenceType(
178
178
context, llvm::dwarf::DW_TAG_array_type, /* name=*/ nullptr ,
179
179
/* file=*/ nullptr , /* line=*/ 0 , /* scope=*/ nullptr , elemTy,
180
180
mlir::LLVM::DIFlags::Zero, /* sizeInBits=*/ 0 , /* alignInBits=*/ 0 ,
181
- elements, dataLocation, rank, /* allocated=*/ nullptr ,
182
- /* associated=*/ nullptr );
181
+ dataLocation, rank, /* allocated=*/ nullptr ,
182
+ /* associated=*/ nullptr , elements );
183
183
}
184
184
185
185
addOp (llvm::dwarf::DW_OP_push_object_address, {});
@@ -255,8 +255,8 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertBoxedSequenceType(
255
255
return mlir::LLVM::DICompositeTypeAttr::get (
256
256
context, llvm::dwarf::DW_TAG_array_type, /* name=*/ nullptr ,
257
257
/* file=*/ nullptr , /* line=*/ 0 , /* scope=*/ nullptr , elemTy,
258
- mlir::LLVM::DIFlags::Zero, /* sizeInBits=*/ 0 , /* alignInBits=*/ 0 , elements,
259
- dataLocation, /* rank=*/ nullptr , allocated, associated);
258
+ mlir::LLVM::DIFlags::Zero, /* sizeInBits=*/ 0 , /* alignInBits=*/ 0 ,
259
+ dataLocation, /* rank=*/ nullptr , allocated, associated, elements );
260
260
}
261
261
262
262
std::pair<std::uint64_t , unsigned short >
@@ -389,8 +389,8 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertRecordType(
389
389
context, recId, /* isRecSelf=*/ true , llvm::dwarf::DW_TAG_structure_type,
390
390
mlir::StringAttr::get (context, " " ), fileAttr, /* line=*/ 0 , scope,
391
391
/* baseType=*/ nullptr , mlir::LLVM::DIFlags::Zero, /* sizeInBits=*/ 0 ,
392
- /* alignInBits=*/ 0 , elements, /* dataLocation=*/ nullptr , /* rank=*/ nullptr ,
393
- /* allocated=*/ nullptr , /* associated=*/ nullptr );
392
+ /* alignInBits=*/ 0 , /* dataLocation=*/ nullptr , /* rank=*/ nullptr ,
393
+ /* allocated=*/ nullptr , /* associated=*/ nullptr , elements );
394
394
DerivedTypeCache::ActiveLevels nestedRecursions =
395
395
derivedTypeCache.startTranslating (Ty, placeHolder);
396
396
@@ -429,8 +429,8 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertRecordType(
429
429
/* file=*/ nullptr , /* line=*/ 0 , /* scope=*/ nullptr ,
430
430
convertType (seqTy.getEleTy (), fileAttr, scope, declOp),
431
431
mlir::LLVM::DIFlags::Zero, /* sizeInBits=*/ 0 , /* alignInBits=*/ 0 ,
432
- arrayElements, /* dataLocation=*/ nullptr , /* rank=*/ nullptr ,
433
- /* allocated=*/ nullptr , /* associated=*/ nullptr );
432
+ /* dataLocation=*/ nullptr , /* rank=*/ nullptr ,
433
+ /* allocated=*/ nullptr , /* associated=*/ nullptr , arrayElements );
434
434
} else
435
435
elemTy = convertType (fieldTy, fileAttr, scope, /* declOp=*/ nullptr );
436
436
offset = llvm::alignTo (offset, byteAlign);
@@ -448,8 +448,8 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertRecordType(
448
448
context, recId, /* isRecSelf=*/ false , llvm::dwarf::DW_TAG_structure_type,
449
449
mlir::StringAttr::get (context, sourceName.name ), fileAttr, line, scope,
450
450
/* baseType=*/ nullptr , mlir::LLVM::DIFlags::Zero, offset * 8 ,
451
- /* alignInBits=*/ 0 , elements, /* dataLocation=*/ nullptr , /* rank=*/ nullptr ,
452
- /* allocated=*/ nullptr , /* associated=*/ nullptr );
451
+ /* alignInBits=*/ 0 , /* dataLocation=*/ nullptr , /* rank=*/ nullptr ,
452
+ /* allocated=*/ nullptr , /* associated=*/ nullptr , elements );
453
453
454
454
derivedTypeCache.finalize (Ty, finalAttr, std::move (nestedRecursions));
455
455
@@ -490,8 +490,8 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertTupleType(
490
490
context, llvm::dwarf::DW_TAG_structure_type,
491
491
mlir::StringAttr::get (context, " " ), fileAttr, /* line=*/ 0 , scope,
492
492
/* baseType=*/ nullptr , mlir::LLVM::DIFlags::Zero, offset * 8 ,
493
- /* alignInBits=*/ 0 , elements, /* dataLocation=*/ nullptr , /* rank=*/ nullptr ,
494
- /* allocated=*/ nullptr , /* associated=*/ nullptr );
493
+ /* alignInBits=*/ 0 , /* dataLocation=*/ nullptr , /* rank=*/ nullptr ,
494
+ /* allocated=*/ nullptr , /* associated=*/ nullptr , elements );
495
495
derivedTypeCache.finalize (Ty, typeAttr, std::move (nestedRecursions));
496
496
return typeAttr;
497
497
}
@@ -554,9 +554,9 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertSequenceType(
554
554
return mlir::LLVM::DICompositeTypeAttr::get (
555
555
context, llvm::dwarf::DW_TAG_array_type, /* name=*/ nullptr ,
556
556
/* file=*/ nullptr , /* line=*/ 0 , /* scope=*/ nullptr , elemTy,
557
- mlir::LLVM::DIFlags::Zero, /* sizeInBits=*/ 0 , /* alignInBits=*/ 0 , elements,
557
+ mlir::LLVM::DIFlags::Zero, /* sizeInBits=*/ 0 , /* alignInBits=*/ 0 ,
558
558
/* dataLocation=*/ nullptr , /* rank=*/ nullptr , /* allocated=*/ nullptr ,
559
- /* associated=*/ nullptr );
559
+ /* associated=*/ nullptr , elements );
560
560
}
561
561
562
562
mlir::LLVM::DITypeAttr DebugTypeGenerator::convertVectorType (
@@ -587,9 +587,9 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertVectorType(
587
587
context, llvm::dwarf::DW_TAG_array_type,
588
588
mlir::StringAttr::get (context, name),
589
589
/* file=*/ nullptr , /* line=*/ 0 , /* scope=*/ nullptr , elemTy,
590
- mlir::LLVM::DIFlags::Vector, sizeInBits, /* alignInBits=*/ 0 , elements,
590
+ mlir::LLVM::DIFlags::Vector, sizeInBits, /* alignInBits=*/ 0 ,
591
591
/* dataLocation=*/ nullptr , /* rank=*/ nullptr , /* allocated=*/ nullptr ,
592
- /* associated=*/ nullptr );
592
+ /* associated=*/ nullptr , elements );
593
593
}
594
594
595
595
mlir::LLVM::DITypeAttr DebugTypeGenerator::convertCharacterType (
0 commit comments