diff options
author | Lang Hames <lhames@gmail.com> | 2022-09-16 11:23:08 -0700 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2022-09-16 13:40:19 -0700 |
commit | 47e9e588083493414d0abfbe33fe3566879c219b (patch) | |
tree | 8e0ab981b6647066fcafb3b80ec768f49f2d8159 /llvm/lib/CodeGen/SelectOptimize.cpp | |
parent | 1d5393526c29312eb51ab7dbbc082d10dfd44a5b (diff) | |
download | llvm-47e9e588083493414d0abfbe33fe3566879c219b.zip llvm-47e9e588083493414d0abfbe33fe3566879c219b.tar.gz llvm-47e9e588083493414d0abfbe33fe3566879c219b.tar.bz2 |
[ORC][ORC-RT][MachO] Reset __data and __common sections on library close.
If we want to be able to close and then re-open a library then we need to reset
the data section states when the library is closed. This commit updates
MachOPlatform and the ORC runtime to track __data and __common sections, and
reset the state in MachOPlatformRuntimeState::dlcloseDeinitialize.
This is only a first step to full support -- there are other data sections that
we're not capturing, and we'll probably want a more efficient representation
for the sections (rather than passing their string name over IPC), but this is
a reasonable first step.
This commit also contains a fix to MapperJITLinkMemoryManager that prevents it
from calling OnDeallocated twice in the case of an error.
Diffstat (limited to 'llvm/lib/CodeGen/SelectOptimize.cpp')
0 files changed, 0 insertions, 0 deletions