LLVM  7.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 #include "llvm/MC/MCObjectWriter.h"
14 
15 using namespace llvm;
16 
17 namespace {
18 
19 class AArch64WinCOFFStreamer : public MCWinCOFFStreamer {
20 public:
21  friend class AArch64TargetWinCOFFStreamer;
22 
23  AArch64WinCOFFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> AB,
24  std::unique_ptr<MCCodeEmitter> CE,
25  std::unique_ptr<MCObjectWriter> OW)
26  : MCWinCOFFStreamer(C, std::move(AB), std::move(CE), std::move(OW)) {}
27 
28  void FinishImpl() override;
29 };
30 
31 void AArch64WinCOFFStreamer::FinishImpl() {
32  EmitFrames(nullptr);
33 
35 }
36 } // end anonymous namespace
37 
38 namespace llvm {
40  MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
41  std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
42  bool RelaxAll, bool IncrementalLinkerCompatible) {
43  auto *S = new AArch64WinCOFFStreamer(Context, std::move(MAB),
44  std::move(Emitter), std::move(OW));
45  S->getAssembler().setIncrementalLinkerCompatible(IncrementalLinkerCompatible);
46  return S;
47 }
48 
49 } // end llvm namespace
uint64_t CallInst * C
void FinishImpl() override
Streamer specific finalization.
LLVMContext & Context
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
MCWinCOFFStreamer * createAArch64WinCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter, bool RelaxAll, bool IncrementalLinkerCompatible)
Definition: BitVector.h:921
Context object for machine code objects.
Definition: MCContext.h:63