Use !hasLocalLinkage instead of listing the symbol types
authorJim Ingham <jingham@apple.com>
Thu, 29 Oct 2020 21:43:03 +0000 (14:43 -0700)
committerJim Ingham <jingham@apple.com>
Thu, 29 Oct 2020 21:44:06 +0000 (14:44 -0700)
we should be exporting one by one.

Differential Revision: https://reviews.llvm.org/D78972

lldb/source/Expression/IRExecutionUnit.cpp

index e3c9c1d..538935d 100644 (file)
@@ -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);