diff options
author | Lang Hames <lhames@gmail.com> | 2018-09-06 19:39:22 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2018-09-06 19:39:22 +0000 |
commit | a5f33c86942e49ea3e1d06bb33909ce7bb806be5 (patch) | |
tree | a144b985c5589d2b6111bd6c363cade29079748b /llvm/lib/ExecutionEngine | |
parent | 3a0c5d7cde294bf272295123fcf0dfe7ec420069 (diff) | |
download | bcm5719-llvm-a5f33c86942e49ea3e1d06bb33909ce7bb806be5.tar.gz bcm5719-llvm-a5f33c86942e49ea3e1d06bb33909ce7bb806be5.zip |
[ORC] Remove the mapSectionAddress method from RuntimeDyldObjectLinkingLayer2.
Section address mappings can be applied using the RuntimeDyld instance passed to
the RuntimeDyld::MemoryManager::notifyObjectLoaded method. Proving an alternate
route via RuntimeDyldObjectLinkingLayer2 is redundant.
llvm-svn: 341578
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp b/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp index db3934d7597..31568977c33 100644 --- a/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp +++ b/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp @@ -93,10 +93,6 @@ void RTDyldObjectLinkingLayer2::emit(MaterializationResponsibility R, { std::lock_guard<std::mutex> Lock(RTDyldLayerMutex); - assert(!ActiveRTDylds.count(K) && - "An active RTDyld already exists for this key?"); - ActiveRTDylds[K] = RTDyld.get(); - assert(!MemMgrs.count(K) && "A memory manager already exists for this key?"); MemMgrs[K] = std::move(MemoryManager); @@ -159,11 +155,6 @@ void RTDyldObjectLinkingLayer2::emit(MaterializationResponsibility R, RTDyld->finalizeWithMemoryManagerLocking(); - { - std::lock_guard<std::mutex> Lock(RTDyldLayerMutex); - ActiveRTDylds.erase(K); - } - if (RTDyld->hasError()) { ES.reportError(make_error<StringError>(RTDyld->getErrorString(), inconvertibleErrorCode())); @@ -177,15 +168,5 @@ void RTDyldObjectLinkingLayer2::emit(MaterializationResponsibility R, NotifyEmitted(K); } -void RTDyldObjectLinkingLayer2::mapSectionAddress( - VModuleKey K, const void *LocalAddress, JITTargetAddress TargetAddr) const { - std::lock_guard<std::mutex> Lock(RTDyldLayerMutex); - auto ActiveRTDyldItr = ActiveRTDylds.find(K); - - assert(ActiveRTDyldItr != ActiveRTDylds.end() && - "No active RTDyld instance found for key"); - ActiveRTDyldItr->second->mapSectionAddress(LocalAddress, TargetAddr); -} - } // End namespace orc. } // End namespace llvm. |