@@ -2274,9 +2274,9 @@ void PPCAIXAsmPrinter::emitLinkage(const GlobalValue *GV,
2274
2274
2275
2275
void PPCAIXAsmPrinter::SetupMachineFunction (MachineFunction &MF) {
2276
2276
// Setup CurrentFnDescSym and its containing csect.
2277
- MCSectionXCOFF *FnDescSec =
2278
- cast<MCSectionXCOFF>( getObjFileLowering ().getSectionForFunctionDescriptor (
2279
- &MF. getFunction (), TM));
2277
+ auto *FnDescSec = static_cast <MCSectionXCOFF *>(
2278
+ getObjFileLowering ().getSectionForFunctionDescriptor (&MF. getFunction (),
2279
+ TM));
2280
2280
FnDescSec->setAlignment (Align (Subtarget->isPPC64 () ? 8 : 4 ));
2281
2281
2282
2282
CurrentFnDescSym = FnDescSec->getQualNameSymbol ();
@@ -2669,9 +2669,9 @@ void PPCAIXAsmPrinter::emitTracebackTable() {
2669
2669
MCSymbol *EHInfoSym =
2670
2670
TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol (MF);
2671
2671
MCSymbol *TOCEntry = lookUpOrCreateTOCEntry (EHInfoSym, TOCType_EHBlock);
2672
- const MCSymbol *TOCBaseSym =
2673
- cast<MCSectionXCOFF>( getObjFileLowering ().getTOCBaseSection ())
2674
- ->getQualNameSymbol ();
2672
+ const MCSymbol *TOCBaseSym = static_cast < const MCSectionXCOFF *>(
2673
+ getObjFileLowering ().getTOCBaseSection ())
2674
+ ->getQualNameSymbol ();
2675
2675
const MCExpr *Exp =
2676
2676
MCBinaryExpr::createSub (MCSymbolRefExpr::create (TOCEntry, Ctx),
2677
2677
MCSymbolRefExpr::create (TOCBaseSym, Ctx), Ctx);
@@ -2788,7 +2788,7 @@ void PPCAIXAsmPrinter::emitGlobalVariableHelper(const GlobalVariable *GV) {
2788
2788
}
2789
2789
}
2790
2790
2791
- MCSectionXCOFF *Csect = cast <MCSectionXCOFF>(
2791
+ auto *Csect = static_cast <MCSectionXCOFF * >(
2792
2792
getObjFileLowering ().SectionForGlobal (GV, GVKind, TM));
2793
2793
2794
2794
// Switch to the containing csect.
@@ -2869,9 +2869,9 @@ void PPCAIXAsmPrinter::emitFunctionDescriptor() {
2869
2869
OutStreamer->emitValue (MCSymbolRefExpr::create (CurrentFnSym, OutContext),
2870
2870
PointerSize);
2871
2871
// Emit TOC base address.
2872
- const MCSymbol *TOCBaseSym =
2873
- cast<MCSectionXCOFF>( getObjFileLowering ().getTOCBaseSection ())
2874
- ->getQualNameSymbol ();
2872
+ const MCSymbol *TOCBaseSym = static_cast < const MCSectionXCOFF *>(
2873
+ getObjFileLowering ().getTOCBaseSection ())
2874
+ ->getQualNameSymbol ();
2875
2875
OutStreamer->emitValue (MCSymbolRefExpr::create (TOCBaseSym, OutContext),
2876
2876
PointerSize);
2877
2877
// Emit a null environment pointer.
@@ -2996,10 +2996,10 @@ void PPCAIXAsmPrinter::emitEndOfAsmFile(Module &M) {
2996
2996
Name += Prefix;
2997
2997
Name += cast<MCSymbolXCOFF>(I.first .first )->getSymbolTableName ();
2998
2998
MCSymbol *S = OutContext.getOrCreateSymbol (Name);
2999
- TCEntry = cast <MCSectionXCOFF>(
2999
+ TCEntry = static_cast <MCSectionXCOFF * >(
3000
3000
getObjFileLowering ().getSectionForTOCEntry (S, TM));
3001
3001
} else {
3002
- TCEntry = cast <MCSectionXCOFF>(
3002
+ TCEntry = static_cast <MCSectionXCOFF * >(
3003
3003
getObjFileLowering ().getSectionForTOCEntry (I.first .first , TM));
3004
3004
}
3005
3005
OutStreamer->switchSection (TCEntry);
@@ -3054,7 +3054,7 @@ bool PPCAIXAsmPrinter::doInitialization(Module &M) {
3054
3054
return ;
3055
3055
3056
3056
SectionKind GOKind = getObjFileLowering ().getKindForGlobal (GO, TM);
3057
- MCSectionXCOFF *Csect = cast <MCSectionXCOFF>(
3057
+ auto *Csect = static_cast <MCSectionXCOFF * >(
3058
3058
getObjFileLowering ().SectionForGlobal (GO, GOKind, TM));
3059
3059
3060
3060
Align GOAlign = getGVAlignment (GO, GO->getDataLayout ());
@@ -3316,9 +3316,9 @@ void PPCAIXAsmPrinter::emitTTypeReference(const GlobalValue *GV,
3316
3316
GlobalType = TOCType_GlobalExternal;
3317
3317
MCSymbol *TypeInfoSym = TM.getSymbol (GV);
3318
3318
MCSymbol *TOCEntry = lookUpOrCreateTOCEntry (TypeInfoSym, GlobalType);
3319
- const MCSymbol *TOCBaseSym =
3320
- cast<MCSectionXCOFF>( getObjFileLowering ().getTOCBaseSection ())
3321
- ->getQualNameSymbol ();
3319
+ const MCSymbol *TOCBaseSym = static_cast < const MCSectionXCOFF *>(
3320
+ getObjFileLowering ().getTOCBaseSection ())
3321
+ ->getQualNameSymbol ();
3322
3322
auto &Ctx = OutStreamer->getContext ();
3323
3323
const MCExpr *Exp =
3324
3324
MCBinaryExpr::createSub (MCSymbolRefExpr::create (TOCEntry, Ctx),
0 commit comments