aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorluxufan <932494295@qq.com>2021-10-09 08:36:41 +0800
committerluxufan <932494295@qq.com>2021-10-09 12:25:47 +0800
commit590326382dad4888111844efa5af0fdeff84c55c (patch)
tree28ccac45401c602ae16ed391a29d5a5624def60b /clang/lib
parent778bf73d7ba693f4bb74d137a70870bce128a19f (diff)
downloadllvm-590326382dad4888111844efa5af0fdeff84c55c.zip
llvm-590326382dad4888111844efa5af0fdeff84c55c.tar.gz
llvm-590326382dad4888111844efa5af0fdeff84c55c.tar.bz2
[Orc] Support atexit in Orc(JITLink)
There is a bug reported at https://bugs.llvm.org/show_bug.cgi?id=48938 After looking through the glibc, I found the `atexit(f)` is the same as `__cxa_atexit(f, NULL, NULL)`. In orc runtime, we identify different JITDylib by their dso_handle value, so that a NULL dso_handle is invalid. So in this patch, I added a `PlatformJDDSOHandle` to ELFNixRuntimeState, and functions which are registered by atexit will be registered at PlatformJD. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D111413
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions