mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 22:45:05 +00:00
1566e71dbd
Reviewers: arsenm, grosbach, rafael Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D12424 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248619 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
979 B
C++
27 lines
979 B
C++
//===-------- AMDGPUELFStreamer.cpp - ELF Object Output -------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "AMDGPUELFStreamer.h"
|
|
#include "Utils/AMDGPUBaseInfo.h"
|
|
|
|
using namespace llvm;
|
|
|
|
void AMDGPUELFStreamer::InitSections(bool NoExecStack) {
|
|
// Start with the .hsatext section by default.
|
|
SwitchSection(AMDGPU::getHSATextSection(getContext()));
|
|
}
|
|
|
|
MCELFStreamer *llvm::createAMDGPUELFStreamer(MCContext &Context,
|
|
MCAsmBackend &MAB,
|
|
raw_pwrite_stream &OS,
|
|
MCCodeEmitter *Emitter,
|
|
bool RelaxAll) {
|
|
return new AMDGPUELFStreamer(Context, MAB, OS, Emitter);
|
|
}
|