projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49cad7d
)
Don't register the addresses of private symbols from expressions.
author
Sean Callanan
<scallanan@apple.com>
Wed, 30 Mar 2016 03:44:51 +0000
(
03:44
+0000)
committer
Sean Callanan
<scallanan@apple.com>
Wed, 30 Mar 2016 03:44:51 +0000
(
03:44
+0000)
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
patch
|
blob
|
history
diff --git
a/lldb/source/Expression/IRExecutionUnit.cpp
b/lldb/source/Expression/IRExecutionUnit.cpp
index
db6f19a
..
1fc7b75
100644
(file)
--- 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();