Commit 65270736 authored by Yaron Keren's avatar Yaron Keren
Browse files

Remove more uses of raw_svector_ostream::flush() call following r244928.

llvm-svn: 244936
parent baf355bc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -198,7 +198,6 @@ HostInfoMacOSX::ComputePythonDirectory(FileSpec &file_spec)
        llvm::SmallString<256> python_version_dir;
        llvm::raw_svector_ostream os(python_version_dir);
        os << "/python" << PY_MAJOR_VERSION << '.' << PY_MINOR_VERSION << "/site-packages";
        os.flush();

        // We may get our string truncated. Should we protect this with an assert?
        raw_path.append(python_version_dir.c_str());
+0 −1
Original line number Diff line number Diff line
@@ -518,7 +518,6 @@ DisassemblerLLVMC::LLVMCDisassembler::PrintMCInst (llvm::MCInst &mc_inst,
    llvm::raw_svector_ostream inst_stream(inst_string);
    m_instr_printer_ap->printInst (&mc_inst, inst_stream, unused_annotations,
                                   *m_subtarget_info_ap);
    inst_stream.flush();
    const size_t output_size = std::min(dst_len - 1, inst_string.size());
    std::memcpy(dst, inst_string.data(), output_size);
    dst[output_size] = '\0';
+0 −1
Original line number Diff line number Diff line
@@ -8811,7 +8811,6 @@ ClangASTContext::DumpTypeDescription (void* type, Stream *s)
            }
        }
        
        llvm_ostrm.flush();
        if (buf.size() > 0)
        {
            s->Write (buf.data(), buf.size());