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 | 40884c052000b29d0f45f804cafc66e44c91367a (patch) | |
| tree | e81a60b9137b8a7a3b2fa3e32757435756f667d9 /clang/lib/Frontend/FixItRewriter.cpp | |
| parent | 076a3278a1564d1d35788ac6c6501866d58e2fad (diff) | |
| download | bcm5719-llvm-40884c052000b29d0f45f804cafc66e44c91367a.tar.gz bcm5719-llvm-40884c052000b29d0f45f804cafc66e44c91367a.zip | |
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.
llvm-svn: 101521
Diffstat (limited to 'clang/lib/Frontend/FixItRewriter.cpp')
| -rw-r--r-- | clang/lib/Frontend/FixItRewriter.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/clang/lib/Frontend/FixItRewriter.cpp b/clang/lib/Frontend/FixItRewriter.cpp index b26401212f4..7aff92340ea 100644 --- a/clang/lib/Frontend/FixItRewriter.cpp +++ b/clang/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;  } | 

