@@ -59,7 +59,7 @@ void MCELFStreamer::initSections(bool NoExecStack, const MCSubtargetInfo &STI) {
5959}
6060
6161void MCELFStreamer::emitLabel (MCSymbol *S, SMLoc Loc) {
62- auto *Symbol = cast <MCSymbolELF>(S);
62+ auto *Symbol = static_cast <MCSymbolELF * >(S);
6363 MCObjectStreamer::emitLabel (Symbol, Loc);
6464
6565 const MCSectionELF &Section =
@@ -70,7 +70,7 @@ void MCELFStreamer::emitLabel(MCSymbol *S, SMLoc Loc) {
7070
7171void MCELFStreamer::emitLabelAtPos (MCSymbol *S, SMLoc Loc, MCFragment &F,
7272 uint64_t Offset) {
73- auto *Symbol = cast <MCSymbolELF>(S);
73+ auto *Symbol = static_cast <MCSymbolELF * >(S);
7474 MCObjectStreamer::emitLabelAtPos (Symbol, Loc, F, Offset);
7575
7676 const MCSectionELF &Section =
@@ -95,7 +95,7 @@ void MCELFStreamer::changeSection(MCSection *Section, uint32_t Subsection) {
9595}
9696
9797void MCELFStreamer::emitWeakReference (MCSymbol *Alias, const MCSymbol *Target) {
98- auto *A = cast <MCSymbolELF>(Alias);
98+ auto *A = static_cast <MCSymbolELF * >(Alias);
9999 if (A->isDefined ()) {
100100 getContext ().reportError (getStartTokLoc (), " symbol '" + A->getName () +
101101 " ' is already defined" );
@@ -126,7 +126,7 @@ static unsigned CombineSymbolTypes(unsigned T1, unsigned T2) {
126126}
127127
128128bool MCELFStreamer::emitSymbolAttribute (MCSymbol *S, MCSymbolAttr Attribute) {
129- auto *Symbol = cast <MCSymbolELF>(S);
129+ auto *Symbol = static_cast <MCSymbolELF * >(S);
130130
131131 // Adding a symbol attribute always introduces the symbol, note that an
132132 // important side effect of calling registerSymbol here is to register
@@ -247,7 +247,7 @@ bool MCELFStreamer::emitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) {
247247
248248void MCELFStreamer::emitCommonSymbol (MCSymbol *S, uint64_t Size,
249249 Align ByteAlignment) {
250- auto *Symbol = cast <MCSymbolELF>(S);
250+ auto *Symbol = static_cast <MCSymbolELF * >(S);
251251 getAssembler ().registerSymbol (*Symbol);
252252
253253 if (!Symbol->isBindingSet ())
@@ -289,7 +289,7 @@ void MCELFStreamer::emitELFSymverDirective(const MCSymbol *OriginalSym,
289289
290290void MCELFStreamer::emitLocalCommonSymbol (MCSymbol *S, uint64_t Size,
291291 Align ByteAlignment) {
292- auto *Symbol = cast <MCSymbolELF>(S);
292+ auto *Symbol = static_cast <MCSymbolELF * >(S);
293293 // FIXME: Should this be caught and done earlier?
294294 getAssembler ().registerSymbol (*Symbol);
295295 Symbol->setBinding (ELF::STB_LOCAL);
0 commit comments