Move alignment from MCSectionData to MCSection.
[oota-llvm.git] / lib / Target / R600 / AMDGPUAsmPrinter.cpp
index 9f09b42d11fae35bf26eb5e1fe76f6a7edfefc5e..56b50a9c159b56c07092b68f49d915c7dc355fea 100644 (file)
@@ -107,7 +107,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
   SetupMachineFunction(MF);
 
   MCContext &Context = getObjFileLowering().getContext();
-  const MCSectionELF *ConfigSection =
+  MCSectionELF *ConfigSection =
       Context.getELFSection(".AMDGPU.config", ELF::SHT_PROGBITS, 0);
   OutStreamer->SwitchSection(ConfigSection);
 
@@ -131,7 +131,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
   EmitFunctionBody();
 
   if (isVerbose()) {
-    const MCSectionELF *CommentSection =
+    MCSectionELF *CommentSection =
         Context.getELFSection(".AMDGPU.csdata", ELF::SHT_PROGBITS, 0);
     OutStreamer->SwitchSection(CommentSection);
 
@@ -509,7 +509,7 @@ void AMDGPUAsmPrinter::EmitAmdKernelCodeT(const MachineFunction &MF,
 
   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:" +