Date: Tue, 3 Jan 2017 20:19:37 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r311165 - projects/clang400-import/contrib/llvm/lib/DebugInfo/Symbolize Message-ID: <201701032019.v03KJbs1077181@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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<IPDBSession> 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<StringError>( + "PDB support not compiled in", + std::make_error_code(std::errc::not_supported)); +#endif } } if (!Context)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701032019.v03KJbs1077181>