mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Disable PDB support in LLVMSymbolizer for now, to avoid llvm-objdump
pulling in all the PDB handling code.
This commit is contained in:
parent
dfb5f2eb8a
commit
ded09321a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/clang400-import/; revision=311165
@ -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<IPDBSession> 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<StringError>(
|
||||
"PDB support not compiled in",
|
||||
std::make_error_code(std::errc::not_supported));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
if (!Context)
|
||||
|
Loading…
Reference in New Issue
Block a user