[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / AMDGPU / MCTargetDesc / AMDGPUELFStreamer.cpp
blob1ce7012040daa40031b1ed91edca80e73b281bff
1 //===-------- AMDGPUELFStreamer.cpp - ELF Object Output -------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "AMDGPUELFStreamer.h"
10 #include "llvm/MC/MCAsmBackend.h"
11 #include "llvm/MC/MCCodeEmitter.h"
12 #include "llvm/MC/MCELFStreamer.h"
13 #include "llvm/MC/MCObjectWriter.h"
15 using namespace llvm;
17 namespace {
19 class AMDGPUELFStreamer : public MCELFStreamer {
20 public:
21 AMDGPUELFStreamer(const Triple &T, MCContext &Context,
22 std::unique_ptr<MCAsmBackend> MAB,
23 std::unique_ptr<MCObjectWriter> OW,
24 std::unique_ptr<MCCodeEmitter> Emitter)
25 : MCELFStreamer(Context, std::move(MAB), std::move(OW),
26 std::move(Emitter)) {}
31 MCELFStreamer *llvm::createAMDGPUELFStreamer(
32 const Triple &T, MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
33 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
34 bool RelaxAll) {
35 return new AMDGPUELFStreamer(T, Context, std::move(MAB), std::move(OW),
36 std::move(Emitter));