[Lldb-commits] [lldb] r244935 - Remove raw_svector_ostream::flush() call following r244928.
Author: yrnkrn Date: Thu Aug 13 13:42:29 2015 New Revision: 244935 URL: http://llvm.org/viewvc/llvm-project?rev=244935&view=rev Log: Remove raw_svector_ostream::flush() call following r244928. Modified: lldb/trunk/source/Host/posix/HostInfoPosix.cpp Modified: lldb/trunk/source/Host/posix/HostInfoPosix.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/HostInfoPosix.cpp?rev=244935&r1=244934&r2=244935&view=diff == --- lldb/trunk/source/Host/posix/HostInfoPosix.cpp (original) +++ lldb/trunk/source/Host/posix/HostInfoPosix.cpp Thu Aug 13 13:42:29 2015 @@ -217,7 +217,6 @@ HostInfoPosix::ComputePythonDirectory(Fi 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? ::strncat(raw_path, python_version_dir.c_str(), sizeof(raw_path) - strlen(raw_path) - 1); ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [lldb] r244936 - Remove more uses of raw_svector_ostream::flush() call following r244928.
Author: yrnkrn Date: Thu Aug 13 13:48:44 2015 New Revision: 244936 URL: http://llvm.org/viewvc/llvm-project?rev=244936&view=rev Log: Remove more uses of raw_svector_ostream::flush() call following r244928. Modified: lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp lldb/trunk/source/Symbol/ClangASTContext.cpp Modified: lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm?rev=244936&r1=244935&r2=244936&view=diff == --- lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm (original) +++ lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm Thu Aug 13 13:48:44 2015 @@ -198,7 +198,6 @@ HostInfoMacOSX::ComputePythonDirectory(F 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()); Modified: lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp?rev=244936&r1=244935&r2=244936&view=diff == --- lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp (original) +++ lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp Thu Aug 13 13:48:44 2015 @@ -518,7 +518,6 @@ DisassemblerLLVMC::LLVMCDisassembler::Pr 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'; Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=244936&r1=244935&r2=244936&view=diff == --- lldb/trunk/source/Symbol/ClangASTContext.cpp (original) +++ lldb/trunk/source/Symbol/ClangASTContext.cpp Thu Aug 13 13:48:44 2015 @@ -8811,7 +8811,6 @@ ClangASTContext::DumpTypeDescription (vo } } -llvm_ostrm.flush(); if (buf.size() > 0) { s->Write (buf.data(), buf.size()); ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [lldb] r245185 - Try to fix the lldb build on Visual C++.
Author: yrnkrn Date: Sun Aug 16 14:40:40 2015 New Revision: 245185 URL: http://llvm.org/viewvc/llvm-project?rev=245185&view=rev Log: Try to fix the lldb build on Visual C++. Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=245185&r1=245184&r2=245185&view=diff == --- lldb/trunk/source/Symbol/ClangASTContext.cpp (original) +++ lldb/trunk/source/Symbol/ClangASTContext.cpp Sun Aug 16 14:40:40 2015 @@ -9079,7 +9079,7 @@ bool ClangASTContext::ResolveClangOpaqueTypeDefinition (SymbolFileDWARF *dwarf, DWARFCompileUnit *dwarf_cu, const DWARFDebugInfoEntry* die, - Type *type, + lldb_private::Type *type, CompilerType &clang_type) { // Disable external storage for this type so we don't get anymore @@ -12260,7 +12260,7 @@ ClangASTContext::ParseTypeFromDWARF (con bool ClangASTContext::CopyUniqueClassMethodTypes (SymbolFileDWARF *dst_symfile, SymbolFileDWARF *src_symfile, - Type *class_type, + lldb_private::Type *class_type, DWARFCompileUnit* src_cu, const DWARFDebugInfoEntry *src_class_die, DWARFCompileUnit* dst_cu, ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits