LLVM 19.0.0git
MCGOFFStreamer.cpp
Go to the documentation of this file.
1//===- lib/MC/MCGOFFStreamer.cpp - GOFF 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//===----------------------------------------------------------------------===//
8//
9// This file assembles .s files and emits GOFF .o object files.
10//
11//===----------------------------------------------------------------------===//
12
15#include "llvm/MC/MCAssembler.h"
17#include "llvm/MC/MCContext.h"
19
20using namespace llvm;
21
23
25 std::unique_ptr<MCAsmBackend> &&MAB,
26 std::unique_ptr<MCObjectWriter> &&OW,
27 std::unique_ptr<MCCodeEmitter> &&CE,
28 bool RelaxAll) {
30 new MCGOFFStreamer(Context, std::move(MAB), std::move(OW), std::move(CE));
31 if (RelaxAll)
32 S->getAssembler().setRelaxAll(true);
33 return S;
34}
LLVMContext & Context
void setRelaxAll(bool Value)
Definition: MCAssembler.h:363
Context object for machine code objects.
Definition: MCContext.h:76
MCAssembler & getAssembler()
Streaming machine code generation interface.
Definition: MCStreamer.h:212
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
MCStreamer * createGOFFStreamer(MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&CE, bool RelaxAll)