@@ -1187,7 +1187,7 @@ bool ELFObjectWriter::hasRelocationAddend() const {
11871187 return TargetObjectWriter->hasRelocationAddend ();
11881188}
11891189
1190- void ELFObjectWriter::executePostLayoutBinding (MCAssembler &Asm ) {
1190+ void ELFObjectWriter::executePostLayoutBinding () {
11911191 // The presence of symbol versions causes undefined symbols and
11921192 // versions declared with @@@ to be renamed.
11931193 for (const Symver &S : Symvers) {
@@ -1203,9 +1203,9 @@ void ELFObjectWriter::executePostLayoutBinding(MCAssembler &Asm) {
12031203 Tail = Rest.substr (Symbol.isUndefined () ? 2 : 1 );
12041204
12051205 auto *Alias =
1206- cast<MCSymbolELF>(Asm. getContext ().getOrCreateSymbol (Prefix + Tail));
1207- Asm. registerSymbol (*Alias);
1208- const MCExpr *Value = MCSymbolRefExpr::create (&Symbol, Asm. getContext ());
1206+ cast<MCSymbolELF>(Asm-> getContext ().getOrCreateSymbol (Prefix + Tail));
1207+ Asm-> registerSymbol (*Alias);
1208+ const MCExpr *Value = MCSymbolRefExpr::create (&Symbol, Asm-> getContext ());
12091209 Alias->setVariableValue (Value);
12101210
12111211 // Aliases defined with .symvar copy the binding from the symbol they alias.
@@ -1219,15 +1219,15 @@ void ELFObjectWriter::executePostLayoutBinding(MCAssembler &Asm) {
12191219
12201220 if (Symbol.isUndefined () && Rest.starts_with (" @@" ) &&
12211221 !Rest.starts_with (" @@@" )) {
1222- Asm. getContext ().reportError (S.Loc , " default version symbol " +
1223- AliasName + " must be defined" );
1222+ Asm-> getContext ().reportError (S.Loc , " default version symbol " +
1223+ AliasName + " must be defined" );
12241224 continue ;
12251225 }
12261226
12271227 if (auto It = Renames.find (&Symbol);
12281228 It != Renames.end () && It->second != Alias) {
1229- Asm. getContext ().reportError (S.Loc , Twine (" multiple versions for " ) +
1230- Symbol.getName ());
1229+ Asm-> getContext ().reportError (S.Loc , Twine (" multiple versions for " ) +
1230+ Symbol.getName ());
12311231 continue ;
12321232 }
12331233
@@ -1416,8 +1416,7 @@ bool ELFObjectWriter::usesRela(const MCTargetOptions *TO,
14161416}
14171417
14181418bool ELFObjectWriter::isSymbolRefDifferenceFullyResolvedImpl (
1419- const MCAssembler &Asm, const MCSymbol &SA, const MCFragment &FB,
1420- bool InSet, bool IsPCRel) const {
1419+ const MCSymbol &SA, const MCFragment &FB, bool InSet, bool IsPCRel) const {
14211420 const auto &SymA = cast<MCSymbolELF>(SA);
14221421 if (IsPCRel) {
14231422 assert (!InSet);
0 commit comments