Date: Wed, 26 Nov 2014 17:09:58 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r275127 - in projects/clang350-import/contrib/llvm/tools/lldb/source: Expression Symbol Message-ID: <201411261709.sAQH9wAG054855@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Wed Nov 26 17:09:58 2014 New Revision: 275127 URL: https://svnweb.freebsd.org/changeset/base/275127 Log: Revert LLDB changes for Clang/LLVM 3.5 API compatibility This reverts the following upstream revisions: SVN git 214501 26d6f063 215969 a083c0db 216603 ee9cd340 216810 f534f503 Sponsored by: DARPA, AFRL Modified: projects/clang350-import/contrib/llvm/tools/lldb/source/Expression/ClangExpressionParser.cpp projects/clang350-import/contrib/llvm/tools/lldb/source/Expression/IRExecutionUnit.cpp projects/clang350-import/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp Modified: projects/clang350-import/contrib/llvm/tools/lldb/source/Expression/ClangExpressionParser.cpp ============================================================================== --- projects/clang350-import/contrib/llvm/tools/lldb/source/Expression/ClangExpressionParser.cpp Wed Nov 26 16:48:12 2014 (r275126) +++ projects/clang350-import/contrib/llvm/tools/lldb/source/Expression/ClangExpressionParser.cpp Wed Nov 26 17:09:58 2014 (r275127) @@ -333,8 +333,8 @@ ClangExpressionParser::Parse (Stream &st if (!created_main_file) { - std::unique_ptr<MemoryBuffer> memory_buffer = MemoryBuffer::getMemBufferCopy(expr_text, __FUNCTION__); - SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(memory_buffer))); + MemoryBuffer *memory_buffer = MemoryBuffer::getMemBufferCopy(expr_text, __FUNCTION__); + SourceMgr.setMainFileID(SourceMgr.createFileID(memory_buffer)); } diag_buf->BeginSourceFile(m_compiler->getLangOpts(), &m_compiler->getPreprocessor()); Modified: projects/clang350-import/contrib/llvm/tools/lldb/source/Expression/IRExecutionUnit.cpp ============================================================================== --- projects/clang350-import/contrib/llvm/tools/lldb/source/Expression/IRExecutionUnit.cpp Wed Nov 26 16:48:12 2014 (r275126) +++ projects/clang350-import/contrib/llvm/tools/lldb/source/Expression/IRExecutionUnit.cpp Wed Nov 26 17:09:58 2014 (r275127) @@ -295,7 +295,7 @@ IRExecutionUnit::GetRunnableInfo(Error & m_module_ap->getContext().setInlineAsmDiagnosticHandler(ReportInlineAsmError, &error); - llvm::EngineBuilder builder(std::move(m_module_ap)); + llvm::EngineBuilder builder(m_module_ap.get()); builder.setEngineKind(llvm::EngineKind::JIT) .setErrorStr(&error_string) @@ -326,6 +326,10 @@ IRExecutionUnit::GetRunnableInfo(Error & error.SetErrorStringWithFormat("Couldn't JIT the function: %s", error_string.c_str()); return; } + else + { + m_module_ap.release(); // ownership was transferred + } // Make sure we see all sections, including ones that don't have relocations... m_execution_engine_ap->setProcessAllSections(true); Modified: projects/clang350-import/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp ============================================================================== --- projects/clang350-import/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp Wed Nov 26 16:48:12 2014 (r275126) +++ projects/clang350-import/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp Wed Nov 26 17:09:58 2014 (r275127) @@ -1778,10 +1778,12 @@ ClangASTContext::CreateFunctionType (AST // TODO: Detect calling convention in DWARF? FunctionProtoType::ExtProtoInfo proto_info; proto_info.Variadic = is_variadic; - proto_info.ExceptionSpec = EST_None; + proto_info.ExceptionSpecType = EST_None; proto_info.TypeQuals = type_quals; proto_info.RefQualifier = RQ_None; - + proto_info.NumExceptions = 0; + proto_info.Exceptions = nullptr; + return ClangASTType (ast, ast->getFunctionType (result_type.GetQualType(), qual_type_args, proto_info).getAsOpaquePtr());
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411261709.sAQH9wAG054855>