From c8c07b76b2cf2ada8e7ec132f7f57b97d76743cf Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Thu, 29 Oct 2020 14:43:03 -0700 Subject: [PATCH] Use !hasLocalLinkage instead of listing the symbol types we should be exporting one by one. Differential Revision: https://reviews.llvm.org/D78972 --- lldb/source/Expression/IRExecutionUnit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index e3c9c1d..538935d 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -328,8 +328,7 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr, if (function.isDeclaration() || function.hasPrivateLinkage()) continue; - const bool external = - function.hasExternalLinkage() || function.hasLinkOnceODRLinkage(); + const bool external = !function.hasLocalLinkage(); void *fun_ptr = m_execution_engine_up->getPointerToFunction(&function); -- 2.7.4