1 //===- ARMTargetStreamer.cpp - ARMTargetStreamer class --*- 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 // This file implements the ARMTargetStreamer class.
11 //
12 //===----------------------------------------------------------------------===//
13 #include "llvm/ADT/MapVector.h"
14 #include "llvm/MC/ConstantPools.h"
15 #include "llvm/MC/MCContext.h"
16 #include "llvm/MC/MCExpr.h"
17 #include "llvm/MC/MCStreamer.h"
18 
19 using namespace llvm;
20 //
21 // ARMTargetStreamer Implemenation
22 //
ARMTargetStreamer(MCStreamer & S)23 ARMTargetStreamer::ARMTargetStreamer(MCStreamer &S)
24     : MCTargetStreamer(S), ConstantPools(new AssemblerConstantPools()) {}
25 
~ARMTargetStreamer()26 ARMTargetStreamer::~ARMTargetStreamer() {}
27 
28 // The constant pool handling is shared by all ARMTargetStreamer
29 // implementations.
addConstantPoolEntry(const MCExpr * Expr,SMLoc Loc)30 const MCExpr *ARMTargetStreamer::addConstantPoolEntry(const MCExpr *Expr, SMLoc Loc) {
31   return ConstantPools->addEntry(Streamer, Expr, 4, Loc);
32 }
33 
emitCurrentConstantPool()34 void ARMTargetStreamer::emitCurrentConstantPool() {
35   ConstantPools->emitForCurrentSection(Streamer);
36 }
37 
38 // finish() - write out any non-empty assembler constant pools.
finish()39 void ARMTargetStreamer::finish() { ConstantPools->emitAll(Streamer); }
40 
41 // The remaining callbacks should be handled separately by each
42 // streamer.
emitFnStart()43 void ARMTargetStreamer::emitFnStart() {}
emitFnEnd()44 void ARMTargetStreamer::emitFnEnd() {}
emitCantUnwind()45 void ARMTargetStreamer::emitCantUnwind() {}
emitPersonality(const MCSymbol * Personality)46 void ARMTargetStreamer::emitPersonality(const MCSymbol *Personality) {}
emitPersonalityIndex(unsigned Index)47 void ARMTargetStreamer::emitPersonalityIndex(unsigned Index) {}
emitHandlerData()48 void ARMTargetStreamer::emitHandlerData() {}
emitSetFP(unsigned FpReg,unsigned SpReg,int64_t Offset)49 void ARMTargetStreamer::emitSetFP(unsigned FpReg, unsigned SpReg,
50                                   int64_t Offset) {}
emitMovSP(unsigned Reg,int64_t Offset)51 void ARMTargetStreamer::emitMovSP(unsigned Reg, int64_t Offset) {}
emitPad(int64_t Offset)52 void ARMTargetStreamer::emitPad(int64_t Offset) {}
emitRegSave(const SmallVectorImpl<unsigned> & RegList,bool isVector)53 void ARMTargetStreamer::emitRegSave(const SmallVectorImpl<unsigned> &RegList,
54                                     bool isVector) {}
emitUnwindRaw(int64_t StackOffset,const SmallVectorImpl<uint8_t> & Opcodes)55 void ARMTargetStreamer::emitUnwindRaw(int64_t StackOffset,
56                                       const SmallVectorImpl<uint8_t> &Opcodes) {
57 }
switchVendor(StringRef Vendor)58 void ARMTargetStreamer::switchVendor(StringRef Vendor) {}
emitAttribute(unsigned Attribute,unsigned Value)59 void ARMTargetStreamer::emitAttribute(unsigned Attribute, unsigned Value) {}
emitTextAttribute(unsigned Attribute,StringRef String)60 void ARMTargetStreamer::emitTextAttribute(unsigned Attribute,
61                                           StringRef String) {}
emitIntTextAttribute(unsigned Attribute,unsigned IntValue,StringRef StringValue)62 void ARMTargetStreamer::emitIntTextAttribute(unsigned Attribute,
63                                              unsigned IntValue,
64                                              StringRef StringValue) {}
emitArch(unsigned Arch)65 void ARMTargetStreamer::emitArch(unsigned Arch) {}
emitArchExtension(unsigned ArchExt)66 void ARMTargetStreamer::emitArchExtension(unsigned ArchExt) {}
emitObjectArch(unsigned Arch)67 void ARMTargetStreamer::emitObjectArch(unsigned Arch) {}
emitFPU(unsigned FPU)68 void ARMTargetStreamer::emitFPU(unsigned FPU) {}
finishAttributeSection()69 void ARMTargetStreamer::finishAttributeSection() {}
emitInst(uint32_t Inst,char Suffix)70 void ARMTargetStreamer::emitInst(uint32_t Inst, char Suffix) {}
71 void
AnnotateTLSDescriptorSequence(const MCSymbolRefExpr * SRE)72 ARMTargetStreamer::AnnotateTLSDescriptorSequence(const MCSymbolRefExpr *SRE) {}
73 
emitThumbSet(MCSymbol * Symbol,const MCExpr * Value)74 void ARMTargetStreamer::emitThumbSet(MCSymbol *Symbol, const MCExpr *Value) {}
75