From ded09321a88c5391479c2acbeaffbef2dfc124b7 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 3 Jan 2017 20:19:37 +0000 Subject: [PATCH] Disable PDB support in LLVMSymbolizer for now, to avoid llvm-objdump pulling in all the PDB handling code. --- contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp b/contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp index 1abb368127af..7e56859c40e6 100644 --- a/contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp +++ b/contrib/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp @@ -395,6 +395,7 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) { 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(const std::string &ModuleName) { 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)