diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-04-16 18:49:45 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-04-16 18:49:45 +0000 |
commit | 0ade808e0ac411baa2dbc1f76ad352b9b6d6d3f8 (patch) | |
tree | dedcdc563dfb0ce38a2e616c574a9d858e35bfac /lib/Frontend/FixItRewriter.cpp | |
parent | d0fe3e9a97459477e64ad1df312fd29b86a3c3cb (diff) |
Add a write(raw_ostream&) method to RewriteBuffer. This uses an inefficient
implementation today but is the right place if we want to make it faster some
day.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/FixItRewriter.cpp')
-rw-r--r-- | lib/Frontend/FixItRewriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/FixItRewriter.cpp b/lib/Frontend/FixItRewriter.cpp index b26401212f..7aff92340e 100644 --- a/lib/Frontend/FixItRewriter.cpp +++ b/lib/Frontend/FixItRewriter.cpp @@ -39,7 +39,7 @@ FixItRewriter::~FixItRewriter() { bool FixItRewriter::WriteFixedFile(FileID ID, llvm::raw_ostream &OS) { const RewriteBuffer *RewriteBuf = Rewrite.getRewriteBufferFor(ID); if (!RewriteBuf) return true; - OS << std::string(RewriteBuf->begin(), RewriteBuf->end()); + RewriteBuf->write(OS); OS.flush(); return false; } |