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 #include "llvm/BinaryFormat/ELF.h"
13 #include "llvm/MC/MCAsmBackend.h"
14 #include "llvm/MC/MCCodeEmitter.h"
15 
16 using namespace llvm;
17 
18 MCELFStreamer *llvm::createAMDGPUELFStreamer(
19     const Triple &T, MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
20     raw_pwrite_stream &OS, std::unique_ptr<MCCodeEmitter> Emitter,
21     bool RelaxAll) {
22   return new AMDGPUELFStreamer(T, Context, std::move(MAB), OS,
23                                std::move(Emitter));
24 }
25