blob: 9ff9fe794d2b9e46898e3afae5ce07a8876d3e22 [file] [log] [blame]
Tom Stellarde135ffd2015-09-25 21:41:28 +00001//===-------- 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
13using namespace llvm;
14
15void AMDGPUELFStreamer::InitSections(bool NoExecStack) {
16 // Start with the .hsatext section by default.
17 SwitchSection(AMDGPU::getHSATextSection(getContext()));
18}
19
20MCELFStreamer *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}