• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // reset() - Reset any state
reset()42 void ARMTargetStreamer::reset() {}
43 
44 // The remaining callbacks should be handled separately by each
45 // streamer.
emitFnStart()46 void ARMTargetStreamer::emitFnStart() {}
emitFnEnd()47 void ARMTargetStreamer::emitFnEnd() {}
emitCantUnwind()48 void ARMTargetStreamer::emitCantUnwind() {}
emitPersonality(const MCSymbol * Personality)49 void ARMTargetStreamer::emitPersonality(const MCSymbol *Personality) {}
emitPersonalityIndex(unsigned Index)50 void ARMTargetStreamer::emitPersonalityIndex(unsigned Index) {}
emitHandlerData()51 void ARMTargetStreamer::emitHandlerData() {}
emitSetFP(unsigned FpReg,unsigned SpReg,int64_t Offset)52 void ARMTargetStreamer::emitSetFP(unsigned FpReg, unsigned SpReg,
53                                   int64_t Offset) {}
emitMovSP(unsigned Reg,int64_t Offset)54 void ARMTargetStreamer::emitMovSP(unsigned Reg, int64_t Offset) {}
emitPad(int64_t Offset)55 void ARMTargetStreamer::emitPad(int64_t Offset) {}
emitRegSave(const SmallVectorImpl<unsigned> & RegList,bool isVector)56 void ARMTargetStreamer::emitRegSave(const SmallVectorImpl<unsigned> &RegList,
57                                     bool isVector) {}
emitUnwindRaw(int64_t StackOffset,const SmallVectorImpl<uint8_t> & Opcodes)58 void ARMTargetStreamer::emitUnwindRaw(int64_t StackOffset,
59                                       const SmallVectorImpl<uint8_t> &Opcodes) {
60 }
switchVendor(StringRef Vendor)61 void ARMTargetStreamer::switchVendor(StringRef Vendor) {}
emitAttribute(unsigned Attribute,unsigned Value)62 void ARMTargetStreamer::emitAttribute(unsigned Attribute, unsigned Value) {}
emitTextAttribute(unsigned Attribute,StringRef String)63 void ARMTargetStreamer::emitTextAttribute(unsigned Attribute,
64                                           StringRef String) {}
emitIntTextAttribute(unsigned Attribute,unsigned IntValue,StringRef StringValue)65 void ARMTargetStreamer::emitIntTextAttribute(unsigned Attribute,
66                                              unsigned IntValue,
67                                              StringRef StringValue) {}
emitArch(unsigned Arch)68 void ARMTargetStreamer::emitArch(unsigned Arch) {}
emitArchExtension(unsigned ArchExt)69 void ARMTargetStreamer::emitArchExtension(unsigned ArchExt) {}
emitObjectArch(unsigned Arch)70 void ARMTargetStreamer::emitObjectArch(unsigned Arch) {}
emitFPU(unsigned FPU)71 void ARMTargetStreamer::emitFPU(unsigned FPU) {}
finishAttributeSection()72 void ARMTargetStreamer::finishAttributeSection() {}
emitInst(uint32_t Inst,char Suffix)73 void ARMTargetStreamer::emitInst(uint32_t Inst, char Suffix) {}
74 void
AnnotateTLSDescriptorSequence(const MCSymbolRefExpr * SRE)75 ARMTargetStreamer::AnnotateTLSDescriptorSequence(const MCSymbolRefExpr *SRE) {}
76 
emitThumbSet(MCSymbol * Symbol,const MCExpr * Value)77 void ARMTargetStreamer::emitThumbSet(MCSymbol *Symbol, const MCExpr *Value) {}
78