@@ -195,7 +195,7 @@ class X86AsmBackend : public MCAsmBackend {
195195 bool padInstructionEncoding (MCFragment &RF, MCCodeEmitter &Emitter,
196196 unsigned &RemainingSize) const ;
197197
198- bool finishLayout (const MCAssembler &Asm ) const override ;
198+ bool finishLayout () const override ;
199199
200200 unsigned getMaximumNopSize (const MCSubtargetInfo &STI) const override ;
201201
@@ -850,7 +850,7 @@ bool X86AsmBackend::padInstructionEncoding(MCFragment &RF,
850850 return Changed;
851851}
852852
853- bool X86AsmBackend::finishLayout (const MCAssembler &Asm ) const {
853+ bool X86AsmBackend::finishLayout () const {
854854 // See if we can further relax some instructions to cut down on the number of
855855 // nop bytes required for code alignment. The actual win is in reducing
856856 // instruction count, not number of bytes. Modern X86-64 can easily end up
@@ -864,11 +864,11 @@ bool X86AsmBackend::finishLayout(const MCAssembler &Asm) const {
864864 // MCSymbols and therefore different relaxation results. X86PadForAlign is
865865 // disabled by default to eliminate the -g vs non -g difference.
866866 DenseSet<MCFragment *> LabeledFragments;
867- for (const MCSymbol &S : Asm. symbols ())
867+ for (const MCSymbol &S : Asm-> symbols ())
868868 LabeledFragments.insert (S.getFragment ());
869869
870870 bool Changed = false ;
871- for (MCSection &Sec : Asm) {
871+ for (MCSection &Sec : * Asm) {
872872 if (!Sec.isText ())
873873 continue ;
874874
@@ -908,13 +908,13 @@ bool X86AsmBackend::finishLayout(const MCAssembler &Asm) const {
908908 // the align directive. This is purely about human understandability
909909 // of the resulting code. If we later find a reason to expand
910910 // particular instructions over others, we can adjust.
911- unsigned RemainingSize = Asm. computeFragmentSize (F) - F.getFixedSize ();
911+ unsigned RemainingSize = Asm-> computeFragmentSize (F) - F.getFixedSize ();
912912 while (!Relaxable.empty () && RemainingSize != 0 ) {
913913 auto &RF = *Relaxable.pop_back_val ();
914914 // Give the backend a chance to play any tricks it wishes to increase
915915 // the encoding size of the given instruction. Target independent code
916916 // will try further relaxation, but target's may play further tricks.
917- Changed |= padInstructionEncoding (RF, Asm. getEmitter (), RemainingSize);
917+ Changed |= padInstructionEncoding (RF, Asm-> getEmitter (), RemainingSize);
918918
919919 // If we have an instruction which hasn't been fully relaxed, we can't
920920 // skip past it and insert bytes before it. Changing its starting
0 commit comments