summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8>2012-10-03 13:39:42 +0000
committertstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8>2012-10-03 13:39:42 +0000
commit920bc39b66ab244a6fe6053e5384d30d65783b5c (patch)
tree96fb4959d8f6e450826a39075b77531c9e096fdd
parentdf9144532f2c01f5e5873590597df8c0b17e4da7 (diff)
SI: Set the section in the Asm Printer before emitting program info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/R600/@165113 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index ac3484dc036..497811366e2 100644
--- a/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -43,10 +43,10 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
MF.dump();
}
SetupMachineFunction(MF);
+ OutStreamer.SwitchSection(getObjFileLowering().getTextSection());
if (STM.device()->getGeneration() > AMDGPUDeviceInfo::HD6XXX) {
EmitProgramInfo(MF);
}
- OutStreamer.SwitchSection(getObjFileLowering().getTextSection());
EmitFunctionBody();
return false;
}