@@ -59,8 +59,6 @@ class MCMachOStreamer : public MCObjectStreamer {
5959 // / labels in the middle of the section.
6060 DenseMap<const MCSection*, bool > HasSectionLabel;
6161
62- void emitInstToData (const MCInst &Inst, const MCSubtargetInfo &STI) override ;
63-
6462 void emitDataRegion (MachO::DataRegionType Kind);
6563 void emitDataRegionEnd ();
6664
@@ -423,23 +421,6 @@ void MCMachOStreamer::emitTBSSSymbol(MCSection *Section, MCSymbol *Symbol,
423421 emitZerofill (Section, Symbol, Size, ByteAlignment);
424422}
425423
426- void MCMachOStreamer::emitInstToData (const MCInst &Inst,
427- const MCSubtargetInfo &STI) {
428- MCDataFragment *DF = getOrCreateDataFragment ();
429-
430- SmallVector<MCFixup, 4 > Fixups;
431- SmallString<256 > Code;
432- getAssembler ().getEmitter ().encodeInstruction (Inst, Code, Fixups, STI);
433-
434- // Add the fixups and data.
435- for (MCFixup &Fixup : Fixups) {
436- Fixup.setOffset (Fixup.getOffset () + DF->getContents ().size ());
437- DF->getFixups ().push_back (Fixup);
438- }
439- DF->setHasInstructions (STI);
440- DF->appendContents (Code);
441- }
442-
443424void MCMachOStreamer::finishImpl () {
444425 emitFrames (&getAssembler ().getBackend ());
445426
0 commit comments