svn commit: r311165 - projects/clang400-import/contrib/llvm/lib/DebugInfo/Symbolize

Dimitry Andric dim at FreeBSD.org
Tue Jan 3 20:19:39 UTC 2017


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)


More information about the svn-src-projects mailing list