brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 22bf2e1 Raw
34 lines · cpp
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-exception6//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 16using namespace llvm;17 18namespace {19class MipsWinCOFFStreamer : public MCWinCOFFStreamer {20public: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} // namespace27 28MCStreamer *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