diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-24 01:00:08 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-24 01:00:08 +0000 | 
| commit | c7dac04c3480f3c20487f912f77343139fce2d99 (patch) | |
| tree | 21a09bce0171e27bd1e92649db9df797fa097cea /lib/MC/MCStreamer.cpp | |
| parent | 044eb2f6afba375a914ac9d8024f8f5142bb912e (diff) | |
Diffstat (limited to 'lib/MC/MCStreamer.cpp')
| -rw-r--r-- | lib/MC/MCStreamer.cpp | 22 | 
1 files changed, 22 insertions, 0 deletions
| diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index 6f3647d61932..6e801ed8777c 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -49,6 +49,28 @@ void MCTargetStreamer::emitLabel(MCSymbol *Symbol) {}  void MCTargetStreamer::finish() {} +void MCTargetStreamer::changeSection(const MCSection *CurSection, +                                     MCSection *Section, +                                     const MCExpr *Subsection, +                                     raw_ostream &OS) { +  Section->PrintSwitchToSection( +      *Streamer.getContext().getAsmInfo(), +      Streamer.getContext().getObjectFileInfo()->getTargetTriple(), OS, +      Subsection); +} + +void MCTargetStreamer::emitDwarfFileDirective(StringRef Directive) { +  Streamer.EmitRawText(Directive); +} + +void MCTargetStreamer::emitValue(const MCExpr *Value) { +  SmallString<128> Str; +  raw_svector_ostream OS(Str); + +  Value->print(OS, Streamer.getContext().getAsmInfo()); +  Streamer.EmitRawText(OS.str()); +} +  void MCTargetStreamer::emitAssignment(MCSymbol *Symbol, const MCExpr *Value) {}  MCStreamer::MCStreamer(MCContext &Ctx) | 
