summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-10-16 00:14:21 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-10-16 00:14:21 +0000
commit43507d026bef31100cb0c35614bcf419029a265b (patch)
treeefd60ca4a91ebf848debd8691d136c594c5a23fe /lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
parent50fd83e832b8a7361e362407555da2e9bd6085eb (diff)
downloadllvm-43507d026bef31100cb0c35614bcf419029a265b.tar.gz
llvm-43507d026bef31100cb0c35614bcf419029a265b.tar.bz2
llvm-43507d026bef31100cb0c35614bcf419029a265b.tar.xz
Adding support for deregistering EH frames with MCJIT.
Patch by Yaron Keren git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index bda32d4154..49f8dc378e 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -32,6 +32,9 @@ namespace llvm {
void RuntimeDyldImpl::registerEHFrames() {
}
+void RuntimeDyldImpl::deregisterEHFrames() {
+}
+
// Resolve the relocations for all symbols we currently know about.
void RuntimeDyldImpl::resolveRelocations() {
// First, resolve relocations associated with external symbols.
@@ -595,7 +598,13 @@ StringRef RuntimeDyld::getErrorString() {
}
void RuntimeDyld::registerEHFrames() {
- return Dyld->registerEHFrames();
+ if (Dyld)
+ Dyld->registerEHFrames();
+}
+
+void RuntimeDyld::deregisterEHFrames() {
+ if (Dyld)
+ Dyld->deregisterEHFrames();
}
} // end namespace llvm