forked from OSchip/llvm-project
Remove more uses of raw_svector_ostream::flush() call following r244928.
llvm-svn: 244936
This commit is contained in:
parent
baf355bc5a
commit
65270736c7
lldb/source
|
@ -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());
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -8811,7 +8811,6 @@ ClangASTContext::DumpTypeDescription (void* type, Stream *s)
|
|||
}
|
||||
}
|
||||
|
||||
llvm_ostrm.flush();
|
||||
if (buf.size() > 0)
|
||||
{
|
||||
s->Write (buf.data(), buf.size());
|
||||
|
|
Loading…
Reference in New Issue