From owner-svn-src-projects@freebsd.org Sun Aug 2 18:18:17 2020 Return-Path: Delivered-To: svn-src-projects@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 994503A43FB for ; Sun, 2 Aug 2020 18:18:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BKTls3bf0z3Wy5; Sun, 2 Aug 2020 18:18:17 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5A84E27AC0; Sun, 2 Aug 2020 18:18:17 +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 072IIHSx065859; Sun, 2 Aug 2020 18:18:17 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 072IIHmw065858; Sun, 2 Aug 2020 18:18:17 GMT (envelope-from dim@FreeBSD.org) Message-Id: <202008021818.072IIHmw065858@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Sun, 2 Aug 2020 18:18:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r363776 - projects/clang1100-import/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize X-SVN-Group: projects X-SVN-Commit-Author: dim X-SVN-Commit-Paths: projects/clang1100-import/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize X-SVN-Commit-Revision: 363776 X-SVN-Commit-Repository: base 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.33 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: Sun, 02 Aug 2020 18:18:17 -0000 Author: dim Date: Sun Aug 2 18:18:16 2020 New Revision: 363776 URL: https://svnweb.freebsd.org/changeset/base/363776 Log: Reapply r311165: Disable PDB support in LLVMSymbolizer for now, to avoid llvm-objdump pulling in all the PDB handling code. Modified: projects/clang1100-import/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp Modified: projects/clang1100-import/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp ============================================================================== --- projects/clang1100-import/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp Sun Aug 2 18:16:04 2020 (r363775) +++ projects/clang1100-import/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp Sun Aug 2 18:18:16 2020 (r363776) @@ -553,6 +553,7 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::strin StringRef PDBFileName; auto EC = CoffObject->getDebugPDBInfo(DebugInfo, PDBFileName); if (!EC && DebugInfo != nullptr && !PDBFileName.empty()) { +#if 0 using namespace pdb; std::unique_ptr Session; PDB_ReaderType ReaderType = Opts.UseNativePDBReader @@ -565,6 +566,11 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::strin return createFileError(PDBFileName, 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)