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

llvm-svn: 244936
This commit is contained in:
Yaron Keren 2015-08-13 18:48:44 +00:00
parent baf355bc5a
commit 65270736c7
3 changed files with 0 additions and 3 deletions
lldb/source
Host/macosx
Plugins/Disassembler/llvm
Symbol

View File

@ -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());

View File

@ -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';

View File

@ -8811,7 +8811,6 @@ ClangASTContext::DumpTypeDescription (void* type, Stream *s)
}
}
llvm_ostrm.flush();
if (buf.size() > 0)
{
s->Write (buf.data(), buf.size());