Remove raw_svector_ostream::resync and users. It's no-op after r244870.
[oota-llvm.git] / lib / MC / MCAsmStreamer.cpp
index 6fdc08670f15117177cfc7617f28b6a0405718a3..ae482a0fd00da28699c993e1f5173e9d3363588b 100644 (file)
@@ -259,9 +259,6 @@ void MCAsmStreamer::AddComment(const Twine &T) {
   T.toVector(CommentToEmit);
   // Each comment goes on its own line.
   CommentToEmit.push_back('\n');
-
-  // Tell the comment stream that the vector changed underneath it.
-  CommentStream.resync();
 }
 
 void MCAsmStreamer::EmitCommentsAndEOL() {
@@ -285,8 +282,6 @@ void MCAsmStreamer::EmitCommentsAndEOL() {
   } while (!Comments.empty());
 
   CommentToEmit.clear();
-  // Tell the comment stream that the vector changed underneath it.
-  CommentStream.resync();
 }
 
 static inline int64_t truncateToSize(int64_t Value, unsigned Bytes) {