Remove and forbid raw_svector_ostream::flush() calls.
[oota-llvm.git] / lib / MC / MCMachOStreamer.cpp
index 116ef094d18ee91e367690b18d20b63e7df2313a..33045d0fcf7b627b1d1cbb2fbd231503d81fdf4f 100644 (file)
@@ -443,7 +443,6 @@ void MCMachOStreamer::EmitInstToData(const MCInst &Inst,
   SmallString<256> Code;
   raw_svector_ostream VecOS(Code);
   getAssembler().getEmitter().encodeInstruction(Inst, VecOS, Fixups, STI);
-  VecOS.flush();
 
   // Add the fixups and data.
   for (unsigned i = 0, e = Fixups.size(); i != e; ++i) {