From owner-svn-src-projects@freebsd.org Tue Jan 3 20:19:39 2017 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 068CDC9DE12 for ; Tue, 3 Jan 2017 20:19:39 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA3F310D3; Tue, 3 Jan 2017 20:19:38 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v03KJbth077182; Tue, 3 Jan 2017 20:19:37 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v03KJbs1077181; Tue, 3 Jan 2017 20:19:37 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201701032019.v03KJbs1077181@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Tue, 3 Jan 2017 20:19:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r311165 - projects/clang400-import/contrib/llvm/lib/DebugInfo/Symbolize X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2017 20:19:39 -0000 Author: dim Date: Tue Jan 3 20:19:37 2017 New Revision: 311165 URL: https://svnweb.freebsd.org/changeset/base/311165 Log: Disable PDB support in LLVMSymbolizer for now, to avoid llvm-objdump pulling in all the PDB handling code. Modified: projects/clang400-import/contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp Modified: projects/clang400-import/contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp ============================================================================== --- projects/clang400-import/contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp Tue Jan 3 18:10:23 2017 (r311164) +++ projects/clang400-import/contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp Tue Jan 3 20:19:37 2017 (r311165) @@ -395,6 +395,7 @@ LLVMSymbolizer::getOrCreateModuleInfo(co StringRef PDBFileName; auto EC = CoffObject->getDebugPDBInfo(DebugInfo, PDBFileName); if (!EC && DebugInfo != nullptr && !PDBFileName.empty()) { +#if 0 using namespace pdb; std::unique_ptr Session; if (auto Err = loadDataForEXE(PDB_ReaderType::DIA, @@ -404,6 +405,11 @@ LLVMSymbolizer::getOrCreateModuleInfo(co return std::move(Err); } Context.reset(new PDBContext(*CoffObject, std::move(Session))); +#else + return make_error( + "PDB support not compiled in", + std::make_error_code(std::errc::not_supported)); +#endif } } if (!Context)