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 // AArch64TargetStreamer(MCStreamer & S)21AArch64TargetStreamer::AArch64TargetStreamer(MCStreamer &S) 22 : MCTargetStreamer(S), ConstantPools(new AssemblerConstantPools()) {} 23 ~AArch64TargetStreamer()24AArch64TargetStreamer::~AArch64TargetStreamer() {} 25 26 // The constant pool handling is shared by all AArch64TargetStreamer 27 // implementations. addConstantPoolEntry(const MCExpr * Expr,unsigned Size,SMLoc Loc)28const MCExpr *AArch64TargetStreamer::addConstantPoolEntry(const MCExpr *Expr, 29 unsigned Size, 30 SMLoc Loc) { 31 return ConstantPools->addEntry(Streamer, Expr, Size, Loc); 32 } 33 emitCurrentConstantPool()34void AArch64TargetStreamer::emitCurrentConstantPool() { 35 ConstantPools->emitForCurrentSection(Streamer); 36 } 37 38 // finish() - write out any non-empty assembler constant pools. finish()39void AArch64TargetStreamer::finish() { ConstantPools->emitAll(Streamer); } 40 emitInst(uint32_t Inst)41void AArch64TargetStreamer::emitInst(uint32_t Inst) {} 42