LLVM  5.0.0
AArch64WinCOFFStreamer.cpp
Go to the documentation of this file.
1 //===-- AArch64WinCOFFStreamer.cpp - ARM Target WinCOFF Streamer ----*- C++ -*-===//
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 "AArch64WinCOFFStreamer.h"
11 
12 using namespace llvm;
13 
14 namespace {
15 
16 class AArch64WinCOFFStreamer : public MCWinCOFFStreamer {
17 public:
18  friend class AArch64TargetWinCOFFStreamer;
19 
20  AArch64WinCOFFStreamer(MCContext &C, MCAsmBackend &AB, MCCodeEmitter &CE,
22  : MCWinCOFFStreamer(C, AB, CE, OS) {}
23 };
24 } // end anonymous namespace
25 
26 namespace llvm {
30  MCCodeEmitter *Emitter, bool RelaxAll,
32  auto *S = new AArch64WinCOFFStreamer(Context, MAB, *Emitter, OS);
33  S->getAssembler().setIncrementalLinkerCompatible(IncrementalLinkerCompatible);
34  return S;
35 }
36 
37 } // end llvm namespace
LLVMContext & Context
MCWinCOFFStreamer * createAArch64WinCOFFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter, bool RelaxAll, bool IncrementalLinkerCompatible)
Context object for machine code objects.
Definition: MCContext.h:59
MCCodeEmitter - Generic instruction encoding interface.
Definition: MCCodeEmitter.h:22
cl::opt< bool > IncrementalLinkerCompatible("incremental-linker-compatible", cl::desc("When used with filetype=obj, ""emit an object file which can be used with an incremental linker"))
#define C
Definition: LargeTest.cpp:25
An abstract base class for streams implementations that also support a pwrite operation.
Definition: raw_ostream.h:333
cl::opt< bool > RelaxAll("mc-relax-all", cl::desc("When used with filetype=obj, ""relax all fixups in the emitted object file"))
Generic interface to target specific assembler backends.
Definition: MCAsmBackend.h:35