diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-10-16 00:14:21 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-10-16 00:14:21 +0000 |
commit | c442a76c601310c36f3c5fad32c05b9846ceec73 (patch) | |
tree | 8fe037184e44bfcbafac9f026f8c0517d87b2f1e /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | |
parent | 226580656be65e569db5e526a94e8f074d53aeb4 (diff) | |
download | bcm5719-llvm-c442a76c601310c36f3c5fad32c05b9846ceec73.tar.gz bcm5719-llvm-c442a76c601310c36f3c5fad32c05b9846ceec73.zip |
Adding support for deregistering EH frames with MCJIT.
Patch by Yaron Keren
llvm-svn: 192753
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index bda32d4154c..49f8dc378e3 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/llvm/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 |