Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 2020 18:18:17 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r363776 - projects/clang1100-import/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize
Message-ID:  <202008021818.072IIHmw065858@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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<IPDBSession> 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<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?202008021818.072IIHmw065858>