mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Changes to fix buffering that I forgot to commit with previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94222 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -136,6 +136,9 @@ 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() {
|
||||
@ -158,7 +161,9 @@ void MCAsmStreamer::EmitCommentsAndEOL() {
|
||||
Comments = Comments.substr(Position+1);
|
||||
} while (!Comments.empty());
|
||||
|
||||
CommentStream.clear();
|
||||
CommentToEmit.clear();
|
||||
// Tell the comment stream that the vector changed underneath it.
|
||||
CommentStream.resync();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user