mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
radeon/llvm: Make sure to use the Text section in the AsmPrinter
This commit is contained in:
parent
68a2c510a6
commit
cb5227b403
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue