Remove raw_svector_ostream::resync and users. It's no-op after r244870.
[oota-llvm.git] / utils / TableGen / FixedLenDecoderEmitter.cpp
index 791e853c025e6e4c0d10cf8b5b5c6f94cb072d6e..994039e7c3957148ccb63b519416afc4342bfee5 100644 (file)
@@ -1290,14 +1290,12 @@ void FilterChooser::emitSoftFailTableEntry(DecoderTableInfo &TableInfo,
   raw_svector_ostream S(MaskBytes);
   if (NeedPositiveMask) {
     encodeULEB128(PositiveMask.getZExtValue(), S);
-    S.flush();
     for (unsigned i = 0, e = MaskBytes.size(); i != e; ++i)
       TableInfo.Table.push_back(MaskBytes[i]);
   } else
     TableInfo.Table.push_back(0);
   if (NeedNegativeMask) {
     MaskBytes.clear();
-    S.resync();
     encodeULEB128(NegativeMask.getZExtValue(), S);
     S.flush();
     for (unsigned i = 0, e = MaskBytes.size(); i != e; ++i)