SetupMachineFunction(MF);
MCContext &Context = getObjFileLowering().getContext();
- const MCSectionELF *ConfigSection =
+ MCSectionELF *ConfigSection =
Context.getELFSection(".AMDGPU.config", ELF::SHT_PROGBITS, 0);
OutStreamer->SwitchSection(ConfigSection);
EmitFunctionBody();
if (isVerbose()) {
- const MCSectionELF *CommentSection =
+ MCSectionELF *CommentSection =
Context.getELFSection(".AMDGPU.csdata", ELF::SHT_PROGBITS, 0);
OutStreamer->SwitchSection(CommentSection);
header.wavefront_size = STM.getWavefrontSize();
- const MCSectionELF *VersionSection =
+ MCSectionELF *VersionSection =
OutContext.getELFSection(".hsa.version", ELF::SHT_PROGBITS, 0);
OutStreamer->SwitchSection(VersionSection);
OutStreamer->EmitBytes(Twine("HSA Code Unit:" +