@@ -463,7 +463,7 @@ void MCStreamer::emitCFIStartProc(bool IsSimple, SMLoc Loc) {
463
463
}
464
464
465
465
FrameInfoStack.emplace_back (DwarfFrameInfos.size (), getCurrentSectionOnly ());
466
- DwarfFrameInfos.push_back (Frame);
466
+ DwarfFrameInfos.push_back (std::move ( Frame) );
467
467
}
468
468
469
469
void MCStreamer::emitCFIStartProcImpl (MCDwarfFrameInfo &Frame) {
@@ -510,7 +510,7 @@ void MCStreamer::emitCFIDefCfa(int64_t Register, int64_t Offset, SMLoc Loc) {
510
510
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
511
511
if (!CurFrame)
512
512
return ;
513
- CurFrame->Instructions .push_back (Instruction);
513
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
514
514
CurFrame->CurrentCfaRegister = static_cast <unsigned >(Register);
515
515
}
516
516
@@ -521,7 +521,7 @@ void MCStreamer::emitCFIDefCfaOffset(int64_t Offset, SMLoc Loc) {
521
521
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
522
522
if (!CurFrame)
523
523
return ;
524
- CurFrame->Instructions .push_back (Instruction);
524
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
525
525
}
526
526
527
527
void MCStreamer::emitCFIAdjustCfaOffset (int64_t Adjustment, SMLoc Loc) {
@@ -531,7 +531,7 @@ void MCStreamer::emitCFIAdjustCfaOffset(int64_t Adjustment, SMLoc Loc) {
531
531
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
532
532
if (!CurFrame)
533
533
return ;
534
- CurFrame->Instructions .push_back (Instruction);
534
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
535
535
}
536
536
537
537
void MCStreamer::emitCFIDefCfaRegister (int64_t Register, SMLoc Loc) {
@@ -541,7 +541,7 @@ void MCStreamer::emitCFIDefCfaRegister(int64_t Register, SMLoc Loc) {
541
541
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
542
542
if (!CurFrame)
543
543
return ;
544
- CurFrame->Instructions .push_back (Instruction);
544
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
545
545
CurFrame->CurrentCfaRegister = static_cast <unsigned >(Register);
546
546
}
547
547
@@ -553,7 +553,7 @@ void MCStreamer::emitCFILLVMDefAspaceCfa(int64_t Register, int64_t Offset,
553
553
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
554
554
if (!CurFrame)
555
555
return ;
556
- CurFrame->Instructions .push_back (Instruction);
556
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
557
557
CurFrame->CurrentCfaRegister = static_cast <unsigned >(Register);
558
558
}
559
559
@@ -564,7 +564,7 @@ void MCStreamer::emitCFIOffset(int64_t Register, int64_t Offset, SMLoc Loc) {
564
564
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
565
565
if (!CurFrame)
566
566
return ;
567
- CurFrame->Instructions .push_back (Instruction);
567
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
568
568
}
569
569
570
570
void MCStreamer::emitCFIRelOffset (int64_t Register, int64_t Offset, SMLoc Loc) {
@@ -574,7 +574,7 @@ void MCStreamer::emitCFIRelOffset(int64_t Register, int64_t Offset, SMLoc Loc) {
574
574
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
575
575
if (!CurFrame)
576
576
return ;
577
- CurFrame->Instructions .push_back (Instruction);
577
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
578
578
}
579
579
580
580
void MCStreamer::emitCFIPersonality (const MCSymbol *Sym,
@@ -601,7 +601,7 @@ void MCStreamer::emitCFIRememberState(SMLoc Loc) {
601
601
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
602
602
if (!CurFrame)
603
603
return ;
604
- CurFrame->Instructions .push_back (Instruction);
604
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
605
605
}
606
606
607
607
void MCStreamer::emitCFIRestoreState (SMLoc Loc) {
@@ -612,7 +612,7 @@ void MCStreamer::emitCFIRestoreState(SMLoc Loc) {
612
612
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
613
613
if (!CurFrame)
614
614
return ;
615
- CurFrame->Instructions .push_back (Instruction);
615
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
616
616
}
617
617
618
618
void MCStreamer::emitCFISameValue (int64_t Register, SMLoc Loc) {
@@ -622,7 +622,7 @@ void MCStreamer::emitCFISameValue(int64_t Register, SMLoc Loc) {
622
622
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
623
623
if (!CurFrame)
624
624
return ;
625
- CurFrame->Instructions .push_back (Instruction);
625
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
626
626
}
627
627
628
628
void MCStreamer::emitCFIRestore (int64_t Register, SMLoc Loc) {
@@ -632,7 +632,7 @@ void MCStreamer::emitCFIRestore(int64_t Register, SMLoc Loc) {
632
632
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
633
633
if (!CurFrame)
634
634
return ;
635
- CurFrame->Instructions .push_back (Instruction);
635
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
636
636
}
637
637
638
638
void MCStreamer::emitCFIEscape (StringRef Values, SMLoc Loc) {
@@ -642,7 +642,7 @@ void MCStreamer::emitCFIEscape(StringRef Values, SMLoc Loc) {
642
642
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
643
643
if (!CurFrame)
644
644
return ;
645
- CurFrame->Instructions .push_back (Instruction);
645
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
646
646
}
647
647
648
648
void MCStreamer::emitCFIGnuArgsSize (int64_t Size, SMLoc Loc) {
@@ -652,7 +652,7 @@ void MCStreamer::emitCFIGnuArgsSize(int64_t Size, SMLoc Loc) {
652
652
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
653
653
if (!CurFrame)
654
654
return ;
655
- CurFrame->Instructions .push_back (Instruction);
655
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
656
656
}
657
657
658
658
void MCStreamer::emitCFISignalFrame () {
@@ -669,7 +669,7 @@ void MCStreamer::emitCFIUndefined(int64_t Register, SMLoc Loc) {
669
669
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
670
670
if (!CurFrame)
671
671
return ;
672
- CurFrame->Instructions .push_back (Instruction);
672
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
673
673
}
674
674
675
675
void MCStreamer::emitCFIRegister (int64_t Register1, int64_t Register2,
@@ -680,7 +680,7 @@ void MCStreamer::emitCFIRegister(int64_t Register1, int64_t Register2,
680
680
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
681
681
if (!CurFrame)
682
682
return ;
683
- CurFrame->Instructions .push_back (Instruction);
683
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
684
684
}
685
685
686
686
void MCStreamer::emitCFIWindowSave (SMLoc Loc) {
@@ -689,7 +689,7 @@ void MCStreamer::emitCFIWindowSave(SMLoc Loc) {
689
689
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
690
690
if (!CurFrame)
691
691
return ;
692
- CurFrame->Instructions .push_back (Instruction);
692
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
693
693
}
694
694
695
695
void MCStreamer::emitCFINegateRAState (SMLoc Loc) {
@@ -699,7 +699,7 @@ void MCStreamer::emitCFINegateRAState(SMLoc Loc) {
699
699
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
700
700
if (!CurFrame)
701
701
return ;
702
- CurFrame->Instructions .push_back (Instruction);
702
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
703
703
}
704
704
705
705
void MCStreamer::emitCFINegateRAStateWithPC (SMLoc Loc) {
@@ -709,7 +709,7 @@ void MCStreamer::emitCFINegateRAStateWithPC(SMLoc Loc) {
709
709
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
710
710
if (!CurFrame)
711
711
return ;
712
- CurFrame->Instructions .push_back (Instruction);
712
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
713
713
}
714
714
715
715
void MCStreamer::emitCFIReturnColumn (int64_t Register) {
@@ -733,7 +733,7 @@ void MCStreamer::emitCFIValOffset(int64_t Register, int64_t Offset, SMLoc Loc) {
733
733
MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo ();
734
734
if (!CurFrame)
735
735
return ;
736
- CurFrame->Instructions .push_back (Instruction);
736
+ CurFrame->Instructions .push_back (std::move ( Instruction) );
737
737
}
738
738
739
739
WinEH::FrameInfo *MCStreamer::EnsureValidWinFrameInfo (SMLoc Loc) {
0 commit comments