xref: /llvm-project/llvm/lib/Target/Mips/MCTargetDesc/MipsWinCOFFStreamer.cpp (revision d8a5fae6913a0f6c7e3c814315c1a11fcfd609a1)
1 //===- MipsWinCOFFStreamer.cpp-----------------------------------*- C++ -*-===//
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 //===---------------------------------------------------------------------===//
8 
9 #include "MipsMCTargetDesc.h"
10 #include "llvm/MC/MCAsmBackend.h"
11 #include "llvm/MC/MCAssembler.h"
12 #include "llvm/MC/MCCodeEmitter.h"
13 #include "llvm/MC/MCObjectWriter.h"
14 #include "llvm/MC/MCWinCOFFStreamer.h"
15 
16 using namespace llvm;
17 
18 namespace {
19 class MipsWinCOFFStreamer : public MCWinCOFFStreamer {
20 public:
21   MipsWinCOFFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> AB,
22                       std::unique_ptr<MCCodeEmitter> CE,
23                       std::unique_ptr<MCObjectWriter> OW)
24       : MCWinCOFFStreamer(C, std::move(AB), std::move(CE), std::move(OW)) {}
25 };
26 } // namespace
27 
28 MCStreamer *llvm::createMipsWinCOFFStreamer(
29     MCContext &C, std::unique_ptr<MCAsmBackend> &&AB,
30     std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&CE) {
31   return new MipsWinCOFFStreamer(C, std::move(AB), std::move(CE),
32                                  std::move(OW));
33 }
34