From cb5227b403a9c78a734e5e67657da6c485881cbb Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 23 Aug 2012 19:15:39 +0000 Subject: [PATCH] radeon/llvm: Make sure to use the Text section in the AsmPrinter --- src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp index 085649d4c50..e751ea57de2 100644 --- a/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp +++ b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp @@ -4,6 +4,7 @@ #include "SIMachineFunctionInfo.h" #include "SIRegisterInfo.h" #include "llvm/MC/MCStreamer.h" +#include "llvm/Target/TargetLoweringObjectFile.h" #include "llvm/Support/TargetRegistry.h" using namespace llvm; @@ -29,6 +30,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) { if (STM.device()->getGeneration() > AMDGPUDeviceInfo::HD6XXX) { EmitProgramInfo(MF); } + OutStreamer.SwitchSection(getObjFileLowering().getTextSection()); EmitFunctionBody(); return false; } -- 2.30.2