@@ -500,13 +500,13 @@ static void emitDWOBuilder(const std::string &DWOName,
500500 SplitCU.getContext ().dwo_info_section_units ()) {
501501 if (!CU->isTypeUnit ())
502502 continue ;
503- emitUnit (DWODIEBuilder, *Streamer, *CU. get () );
503+ emitUnit (DWODIEBuilder, *Streamer, *CU);
504504 }
505505 emitUnit (DWODIEBuilder, *Streamer, SplitCU);
506506 } else {
507507 for (std::unique_ptr<llvm::DWARFUnit> &CU :
508508 SplitCU.getContext ().dwo_compile_units ())
509- emitUnit (DWODIEBuilder, *Streamer, *CU. get () );
509+ emitUnit (DWODIEBuilder, *Streamer, *CU);
510510
511511 // emit debug_types sections for dwarf4
512512 for (DWARFUnit *CU : DWODIEBuilder.getDWARF4TUVector ())
@@ -685,8 +685,8 @@ void DWARFRewriter::updateDebugInfo() {
685685 DebugLocWriter &DebugLocWriter =
686686 *LocListWritersByCU[LocListWritersIndexByCU[Unit.getOffset ()]].get ();
687687 DebugRangesSectionWriter &RangesSectionWriter =
688- Unit.getVersion () >= 5 ? *RangeListsSectionWriter. get ()
689- : *LegacyRangesSectionWriter. get () ;
688+ Unit.getVersion () >= 5 ? *RangeListsSectionWriter
689+ : *LegacyRangesSectionWriter;
690690 DebugAddrWriter &AddressWriter =
691691 *AddressWritersByCU[Unit.getOffset ()].get ();
692692 if (Unit.getVersion () >= 5 )
@@ -698,7 +698,7 @@ void DWARFRewriter::updateDebugInfo() {
698698 if (!SplitCU)
699699 StrOffstsWriter->finalizeSection (Unit, DIEBlder);
700700 } else if (SplitCU) {
701- RangesBase = LegacyRangesSectionWriter. get () ->getSectionOffset ();
701+ RangesBase = LegacyRangesSectionWriter->getSectionOffset ();
702702 }
703703
704704 updateUnitDebugInfo (Unit, DIEBlder, DebugLocWriter, RangesSectionWriter,
@@ -750,7 +750,7 @@ void DWARFRewriter::updateDebugInfo() {
750750 auto DWODIEBuilderPtr = std::make_unique<DIEBuilder>(
751751 BC, &(**SplitCU).getContext (), DebugNamesTable, CU);
752752 DIEBuilder &DWODIEBuilder =
753- *DWODIEBuildersByCU.emplace_back (std::move (DWODIEBuilderPtr)). get () ;
753+ *DWODIEBuildersByCU.emplace_back (std::move (DWODIEBuilderPtr));
754754 if (CU->getVersion () >= 5 )
755755 StrOffstsWriter->finalizeSection (*CU, DIEBlder);
756756 // Important to capture CU and SplitCU by value here, otherwise when the
@@ -1403,7 +1403,7 @@ void DWARFRewriter::updateLineTableOffsets(const MCAssembler &Asm) {
14031403 continue ;
14041404
14051405 std::optional<uint64_t > StmtOffset =
1406- GetStatementListValue (CU. get () ->getUnitDIE ());
1406+ GetStatementListValue (CU->getUnitDIE ());
14071407 if (!StmtOffset)
14081408 continue ;
14091409
@@ -1479,13 +1479,13 @@ CUOffsetMap DWARFRewriter::finalizeTypeSections(DIEBuilder &DIEBlder,
14791479 for (std::unique_ptr<llvm::DWARFUnit> &CU : BC.DwCtx ->info_section_units ()) {
14801480 if (!CU->isTypeUnit ())
14811481 continue ;
1482- updateLineTable (*CU. get () );
1483- emitUnit (DIEBlder, Streamer, *CU. get () );
1482+ updateLineTable (*CU);
1483+ emitUnit (DIEBlder, Streamer, *CU);
14841484 uint32_t StartOffset = CUOffset;
1485- DIE *UnitDIE = DIEBlder.getUnitDIEbyUnit (*CU. get () );
1486- CUOffset += CU. get () ->getHeaderSize ();
1485+ DIE *UnitDIE = DIEBlder.getUnitDIEbyUnit (*CU);
1486+ CUOffset += CU->getHeaderSize ();
14871487 CUOffset += UnitDIE->getSize ();
1488- CUMap[CU. get () ->getOffset ()] = {StartOffset, CUOffset - StartOffset - 4 };
1488+ CUMap[CU->getOffset ()] = {StartOffset, CUOffset - StartOffset - 4 };
14891489 }
14901490
14911491 // Emit Type Unit of DWARF 4 to .debug_type section
0 commit comments