@@ -147,7 +147,7 @@ void MCMachOStreamer::changeSection(MCSection *Section, uint32_t Subsection) {
147
147
148
148
void MCMachOStreamer::emitEHSymAttributes (const MCSymbol *Symbol,
149
149
MCSymbol *EHSymbol) {
150
- auto *Sym = cast< MCSymbolMachO>(Symbol);
150
+ auto *Sym = static_cast < const MCSymbolMachO * >(Symbol);
151
151
getAssembler ().registerSymbol (*Symbol);
152
152
if (Symbol->isExternal ())
153
153
emitSymbolAttribute (EHSymbol, MCSA_Global);
@@ -172,7 +172,7 @@ void MCMachOStreamer::emitLabel(MCSymbol *Symbol, SMLoc Loc) {
172
172
//
173
173
// FIXME: Cleanup this code, these bits should be emitted based on semantic
174
174
// properties, not on the order of definition, etc.
175
- cast <MCSymbolMachO>(Symbol)->clearReferenceType ();
175
+ static_cast <MCSymbolMachO * >(Symbol)->clearReferenceType ();
176
176
}
177
177
178
178
void MCMachOStreamer::emitAssignment (MCSymbol *Symbol, const MCExpr *Value) {
@@ -182,7 +182,7 @@ void MCMachOStreamer::emitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
182
182
if (const auto *SymA = Res.getAddSym ()) {
183
183
if (!Res.getSubSym () &&
184
184
(SymA->getName ().empty () || Res.getConstant () != 0 ))
185
- cast <MCSymbolMachO>(Symbol)->setAltEntry ();
185
+ static_cast <MCSymbolMachO * >(Symbol)->setAltEntry ();
186
186
}
187
187
}
188
188
MCObjectStreamer::emitAssignment (Symbol, Value);
@@ -256,7 +256,7 @@ void MCMachOStreamer::emitDarwinTargetVariantBuildVersion(
256
256
257
257
bool MCMachOStreamer::emitSymbolAttribute (MCSymbol *Sym,
258
258
MCSymbolAttr Attribute) {
259
- MCSymbolMachO *Symbol = cast <MCSymbolMachO>(Sym);
259
+ auto *Symbol = static_cast <MCSymbolMachO * >(Sym);
260
260
261
261
// Indirect symbols are handled differently, to match how 'as' handles
262
262
// them. This makes writing matching .o files easier.
@@ -367,7 +367,7 @@ bool MCMachOStreamer::emitSymbolAttribute(MCSymbol *Sym,
367
367
void MCMachOStreamer::emitSymbolDesc (MCSymbol *Symbol, unsigned DescValue) {
368
368
// Encode the 'desc' value into the lowest implementation defined bits.
369
369
getAssembler ().registerSymbol (*Symbol);
370
- cast <MCSymbolMachO>(Symbol)->setDesc (DescValue);
370
+ static_cast <MCSymbolMachO * >(Symbol)->setDesc (DescValue);
371
371
}
372
372
373
373
void MCMachOStreamer::emitCommonSymbol (MCSymbol *Symbol, uint64_t Size,
@@ -430,7 +430,7 @@ void MCMachOStreamer::finishImpl() {
430
430
// defining symbols.
431
431
DenseMap<const MCFragment *, const MCSymbol *> DefiningSymbolMap;
432
432
for (const MCSymbol &Symbol : getAssembler ().symbols ()) {
433
- auto &Sym = cast< MCSymbolMachO>(Symbol);
433
+ auto &Sym = static_cast < const MCSymbolMachO & >(Symbol);
434
434
if (Sym.isSymbolLinkerVisible () && Sym.isInSection () && !Sym.isVariable () &&
435
435
!Sym.isAltEntry ()) {
436
436
// An atom defining symbol should never be internal to a fragment.
0 commit comments