LLVM  3.7.0
AArch64TargetStreamer.cpp
Go to the documentation of this file.
1 //===- AArch64TargetStreamer.cpp - AArch64TargetStreamer class ------------===//
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 // This file implements the AArch64TargetStreamer class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "AArch64TargetStreamer.h"
15 #include "llvm/MC/ConstantPools.h"
16 using namespace llvm;
17 
18 //
19 // AArch64TargetStreamer Implemenation
20 //
22  : MCTargetStreamer(S), ConstantPools(new AssemblerConstantPools()) {}
23 
25 
26 // The constant pool handling is shared by all AArch64TargetStreamer
27 // implementations.
29  unsigned Size) {
30  return ConstantPools->addEntry(Streamer, Expr, Size);
31 }
32 
34  ConstantPools->emitForCurrentSection(Streamer);
35 }
36 
37 // finish() - write out any non-empty assembler constant pools.
38 void AArch64TargetStreamer::finish() { ConstantPools->emitAll(Streamer); }
39 
40 void AArch64TargetStreamer::emitInst(uint32_t Inst) {}
Target specific streamer interface.
Definition: MCStreamer.h:73
virtual void emitInst(uint32_t Inst)
Callback used to implement the .inst directive.
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:33
Streaming machine code generation interface.
Definition: MCStreamer.h:157
MCStreamer & Streamer
Definition: MCStreamer.h:75
const MCExpr * addConstantPoolEntry(const MCExpr *, unsigned Size)
Callback used to implement the ldr= pseudo.
void emitCurrentConstantPool()
Callback used to implemnt the .ltorg directive.