2015-05-24 00:15:10 +08:00
|
|
|
//===- AArch64TargetStreamer.cpp - AArch64TargetStreamer class ------------===//
|
2014-06-25 00:21:38 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the AArch64TargetStreamer class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2015-05-24 00:15:10 +08:00
|
|
|
#include "AArch64TargetStreamer.h"
|
|
|
|
#include "llvm/MC/ConstantPools.h"
|
2017-01-06 08:30:53 +08:00
|
|
|
|
2014-06-25 00:21:38 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
//
|
|
|
|
// AArch64TargetStreamer Implemenation
|
|
|
|
//
|
|
|
|
AArch64TargetStreamer::AArch64TargetStreamer(MCStreamer &S)
|
|
|
|
: MCTargetStreamer(S), ConstantPools(new AssemblerConstantPools()) {}
|
|
|
|
|
2017-01-06 08:30:53 +08:00
|
|
|
AArch64TargetStreamer::~AArch64TargetStreamer() = default;
|
2014-06-25 00:21:38 +08:00
|
|
|
|
|
|
|
// The constant pool handling is shared by all AArch64TargetStreamer
|
|
|
|
// implementations.
|
2014-07-19 00:05:14 +08:00
|
|
|
const MCExpr *AArch64TargetStreamer::addConstantPoolEntry(const MCExpr *Expr,
|
2015-11-17 00:25:47 +08:00
|
|
|
unsigned Size,
|
|
|
|
SMLoc Loc) {
|
|
|
|
return ConstantPools->addEntry(Streamer, Expr, Size, Loc);
|
2014-06-25 00:21:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void AArch64TargetStreamer::emitCurrentConstantPool() {
|
|
|
|
ConstantPools->emitForCurrentSection(Streamer);
|
|
|
|
}
|
|
|
|
|
|
|
|
// finish() - write out any non-empty assembler constant pools.
|
|
|
|
void AArch64TargetStreamer::finish() { ConstantPools->emitAll(Streamer); }
|
2014-10-23 04:35:57 +08:00
|
|
|
|
|
|
|
void AArch64TargetStreamer::emitInst(uint32_t Inst) {}
|