File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 27
27
#include " llvm/ExecutionEngine/Orc/AbsoluteSymbols.h"
28
28
#include " llvm/ExecutionEngine/Orc/DebugUtils.h"
29
29
#include " llvm/ExecutionEngine/Orc/Debugging/DebuggerSupport.h"
30
- #include " llvm/ExecutionEngine/Orc/EHFrameRegistrationPlugin.h"
31
30
#include " llvm/ExecutionEngine/Orc/EPCDynamicLibrarySearchGenerator.h"
32
- #include " llvm/ExecutionEngine/Orc/EPCEHFrameRegistrar.h"
33
31
#include " llvm/ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.h"
34
32
#include " llvm/ExecutionEngine/Orc/ExecutionUtils.h"
35
33
#include " llvm/ExecutionEngine/Orc/IRPartitionLayer.h"
@@ -1033,14 +1031,10 @@ int runOrcJIT(const char *ProgName) {
1033
1031
Builder.getJITTargetMachineBuilder ()
1034
1032
->setRelocationModel (Reloc::PIC_)
1035
1033
.setCodeModel (CodeModel::Small);
1036
- Builder.setObjectLinkingLayerCreator ([&P](orc::ExecutionSession &ES,
1037
- const Triple &TT) {
1038
- auto L = std::make_unique<orc::ObjectLinkingLayer>(ES);
1039
- if (P != LLJITPlatform::ExecutorNative)
1040
- L->addPlugin (std::make_unique<orc::EHFrameRegistrationPlugin>(
1041
- ES, ExitOnErr (orc::EPCEHFrameRegistrar::Create (ES))));
1042
- return L;
1043
- });
1034
+ Builder.setObjectLinkingLayerCreator (
1035
+ [&](orc::ExecutionSession &ES, const Triple &TT) {
1036
+ return std::make_unique<orc::ObjectLinkingLayer>(ES);
1037
+ });
1044
1038
}
1045
1039
1046
1040
auto J = ExitOnErr (Builder.create ());
You can’t perform that action at this time.
0 commit comments