aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-08-02 18:18:16 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-08-02 18:18:16 +0000
commitcfe333b850cee184f0658cdf4e3001b537d8f120 (patch)
tree056903cb603a16326efc3f9142a03777948168bb /contrib/llvm-project
parentf82466688624c6ff2f24b6157944ab18d0b9d456 (diff)
downloadsrc-cfe333b850cee184f0658cdf4e3001b537d8f120.tar.gz
src-cfe333b850cee184f0658cdf4e3001b537d8f120.zip
Notes
Diffstat (limited to 'contrib/llvm-project')
-rw-r--r--contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp b/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
index 1d767a2b0d88..051195934aaf 100644
--- a/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
+++ b/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
@@ -553,6 +553,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;
PDB_ReaderType ReaderType = Opts.UseNativePDBReader
@@ -565,6 +566,11 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) {
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)