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  void FinishImpl() override;
28 };
29 
30 void AArch64WinCOFFStreamer::FinishImpl() {
31  EmitFrames(nullptr);
32 
34 }
35 } // end anonymous namespace
36 
37 namespace llvm {
39  MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
40  raw_pwrite_stream &OS, std::unique_ptr<MCCodeEmitter> Emitter,
41  bool RelaxAll, bool IncrementalLinkerCompatible) {
42  auto *S = new AArch64WinCOFFStreamer(Context, std::move(MAB),
43  std::move(Emitter), OS);
44  S->getAssembler().setIncrementalLinkerCompatible(IncrementalLinkerCompatible);
45  return S;
46 }
47 
48 } // 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
Definition: BitVector.h:920
Context object for machine code objects.
Definition: MCContext.h:59
MCWinCOFFStreamer * createAArch64WinCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, raw_pwrite_stream &OS, std::unique_ptr< MCCodeEmitter > Emitter, bool RelaxAll, bool IncrementalLinkerCompatible)
An abstract base class for streams implementations that also support a pwrite operation.
Definition: raw_ostream.h:337