@@ -1135,9 +1135,10 @@ MCObjectFileInfo::getCallGraphSection(const MCSection &TextSec) const {
11351135 Flags |= ELF::SHF_GROUP;
11361136 }
11371137
1138- return Ctx->getELFSection (" .callgraph" , ELF::SHT_PROGBITS, Flags, 0 ,
1139- GroupName, true , ElfSec.getUniqueID (),
1140- cast<MCSymbolELF>(TextSec.getBeginSymbol ()));
1138+ return Ctx->getELFSection (
1139+ " .callgraph" , ELF::SHT_PROGBITS, Flags, 0 , GroupName, true ,
1140+ ElfSec.getUniqueID (),
1141+ static_cast <const MCSymbolELF *>(TextSec.getBeginSymbol ()));
11411142}
11421143
11431144MCSection *
@@ -1154,9 +1155,10 @@ MCObjectFileInfo::getStackSizesSection(const MCSection &TextSec) const {
11541155 Flags |= ELF::SHF_GROUP;
11551156 }
11561157
1157- return Ctx->getELFSection (" .stack_sizes" , ELF::SHT_PROGBITS, Flags, 0 ,
1158- GroupName, true , ElfSec.getUniqueID (),
1159- cast<MCSymbolELF>(TextSec.getBeginSymbol ()));
1158+ return Ctx->getELFSection (
1159+ " .stack_sizes" , ELF::SHT_PROGBITS, Flags, 0 , GroupName, true ,
1160+ ElfSec.getUniqueID (),
1161+ static_cast <const MCSymbolELF *>(TextSec.getBeginSymbol ()));
11601162}
11611163
11621164MCSection *
@@ -1174,9 +1176,10 @@ MCObjectFileInfo::getBBAddrMapSection(const MCSection &TextSec) const {
11741176
11751177 // Use the text section's begin symbol and unique ID to create a separate
11761178 // .llvm_bb_addr_map section associated with every unique text section.
1177- return Ctx->getELFSection (" .llvm_bb_addr_map" , ELF::SHT_LLVM_BB_ADDR_MAP,
1178- Flags, 0 , GroupName, true , ElfSec.getUniqueID (),
1179- cast<MCSymbolELF>(TextSec.getBeginSymbol ()));
1179+ return Ctx->getELFSection (
1180+ " .llvm_bb_addr_map" , ELF::SHT_LLVM_BB_ADDR_MAP, Flags, 0 , GroupName, true ,
1181+ ElfSec.getUniqueID (),
1182+ static_cast <const MCSymbolELF *>(TextSec.getBeginSymbol ()));
11801183}
11811184
11821185MCSection *
@@ -1192,10 +1195,10 @@ MCObjectFileInfo::getKCFITrapSection(const MCSection &TextSec) const {
11921195 Flags |= ELF::SHF_GROUP;
11931196 }
11941197
1195- return Ctx->getELFSection (" .kcfi_traps " , ELF::SHT_PROGBITS, Flags, 0 ,
1196- GroupName,
1197- /* IsComdat=*/ true , ElfSec.getUniqueID (),
1198- cast< MCSymbolELF>(TextSec.getBeginSymbol ()));
1198+ return Ctx->getELFSection (
1199+ " .kcfi_traps " , ELF::SHT_PROGBITS, Flags, 0 , GroupName,
1200+ /* IsComdat=*/ true , ElfSec.getUniqueID (),
1201+ static_cast < const MCSymbolELF * >(TextSec.getBeginSymbol ()));
11991202}
12001203
12011204MCSection *
@@ -1211,9 +1214,10 @@ MCObjectFileInfo::getPseudoProbeSection(const MCSection &TextSec) const {
12111214 Flags |= ELF::SHF_GROUP;
12121215 }
12131216
1214- return Ctx->getELFSection (PseudoProbeSection->getName (), ELF::SHT_PROGBITS,
1215- Flags, 0 , GroupName, true , ElfSec.getUniqueID (),
1216- cast<MCSymbolELF>(TextSec.getBeginSymbol ()));
1217+ return Ctx->getELFSection (
1218+ PseudoProbeSection->getName (), ELF::SHT_PROGBITS, Flags, 0 , GroupName,
1219+ true , ElfSec.getUniqueID (),
1220+ static_cast <const MCSymbolELF *>(TextSec.getBeginSymbol ()));
12171221}
12181222
12191223MCSection *
@@ -1261,7 +1265,7 @@ MCSection *MCObjectFileInfo::getPCSection(StringRef Name,
12611265 GroupName = Group->getName ();
12621266 Flags |= ELF::SHF_GROUP;
12631267 }
1264- return Ctx->getELFSection (Name, ELF::SHT_PROGBITS, Flags, 0 , GroupName, true ,
1265- ElfSec.getUniqueID (),
1266- cast< MCSymbolELF>(TextSec->getBeginSymbol ()));
1268+ return Ctx->getELFSection (
1269+ Name, ELF::SHT_PROGBITS, Flags, 0 , GroupName, true , ElfSec.getUniqueID (),
1270+ static_cast < const MCSymbolELF * >(TextSec->getBeginSymbol ()));
12671271}
0 commit comments