LLVM  6.0.0svn
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 #include "llvm/MC/MCAsmBackend.h"
12 #include "llvm/MC/MCCodeEmitter.h"
13 
14 using namespace llvm;
15 
16 namespace {
17 
18 class AArch64WinCOFFStreamer : public MCWinCOFFStreamer {
19 public:
20  friend class AArch64TargetWinCOFFStreamer;
21 
22  AArch64WinCOFFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> AB,
23  std::unique_ptr<MCCodeEmitter> CE,
25  : MCWinCOFFStreamer(C, std::move(AB), std::move(CE), OS) {}
26 };
27 } // end anonymous namespace
28 
29 namespace llvm {
31  MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
32  raw_pwrite_stream &OS, std::unique_ptr<MCCodeEmitter> Emitter,
34  auto *S = new AArch64WinCOFFStreamer(Context, std::move(MAB),
35  std::move(Emitter), OS);
36  S->getAssembler().setIncrementalLinkerCompatible(IncrementalLinkerCompatible);
37  return S;
38 }
39 
40 } // end llvm namespace
uint64_t CallInst * C
LLVMContext & Context
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
Definition: BitVector.h:920
Context object for machine code objects.
Definition: MCContext.h:59
cl::opt< bool > RelaxAll("mc-relax-all", cl::desc("When used with filetype=obj, " "relax all fixups in the emitted object file"))
MCWinCOFFStreamer * createAArch64WinCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, raw_pwrite_stream &OS, std::unique_ptr< MCCodeEmitter > Emitter, bool RelaxAll, bool IncrementalLinkerCompatible)
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"))
An abstract base class for streams implementations that also support a pwrite operation.
Definition: raw_ostream.h:337