1 //===-------- AMDGPUELFStreamer.cpp - ELF Object Output -------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "AMDGPUELFStreamer.h"
11 #include "Utils/AMDGPUBaseInfo.h"
12 
13 using namespace llvm;
14 
InitSections(bool NoExecStack)15 void AMDGPUELFStreamer::InitSections(bool NoExecStack) {
16   // Start with the .hsatext section by default.
17   SwitchSection(AMDGPU::getHSATextSection(getContext()));
18 }
19 
createAMDGPUELFStreamer(MCContext & Context,MCAsmBackend & MAB,raw_pwrite_stream & OS,MCCodeEmitter * Emitter,bool RelaxAll)20 MCELFStreamer *llvm::createAMDGPUELFStreamer(MCContext &Context,
21                                            MCAsmBackend &MAB,
22                                            raw_pwrite_stream &OS,
23                                            MCCodeEmitter *Emitter,
24                                            bool RelaxAll) {
25   return new AMDGPUELFStreamer(Context, MAB, OS, Emitter);
26 }
27