From 3ce036b4342c5e183bb2b3b3839524e295066095 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Wed, 30 Mar 2016 03:44:51 +0000 Subject: [PATCH] Don't register the addresses of private symbols from expressions. They're not supposed to go in the symbol table, and in fact the way the JIT is currently implemented it sometimes crashes when you try to get the address of such a function. So we skip them. llvm-svn: 264821 --- lldb/source/Expression/IRExecutionUnit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index db6f19a4..1fc7b75 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -344,7 +344,7 @@ IRExecutionUnit::GetRunnableInfo(Error &error, for (llvm::Function &function : *m_module) { - if (function.isDeclaration()) + if (function.isDeclaration() || function.hasPrivateLinkage()) continue; const bool external = function.hasExternalLinkage() || function.hasLinkOnceODRLinkage(); -- 2.7.4