Skip to content

Commit 54d1812

Browse files
author
Salinas, David
authored
[ORC][LLI] Remove redundant eh-frame registration plugin construction… (llvm#812)
2 parents a12f7ad + 22f42f0 commit 54d1812

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

llvm/tools/lli/lli.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
#include "llvm/ExecutionEngine/Orc/AbsoluteSymbols.h"
2828
#include "llvm/ExecutionEngine/Orc/DebugUtils.h"
2929
#include "llvm/ExecutionEngine/Orc/Debugging/DebuggerSupport.h"
30-
#include "llvm/ExecutionEngine/Orc/EHFrameRegistrationPlugin.h"
3130
#include "llvm/ExecutionEngine/Orc/EPCDynamicLibrarySearchGenerator.h"
32-
#include "llvm/ExecutionEngine/Orc/EPCEHFrameRegistrar.h"
3331
#include "llvm/ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.h"
3432
#include "llvm/ExecutionEngine/Orc/ExecutionUtils.h"
3533
#include "llvm/ExecutionEngine/Orc/IRPartitionLayer.h"
@@ -1033,14 +1031,10 @@ int runOrcJIT(const char *ProgName) {
10331031
Builder.getJITTargetMachineBuilder()
10341032
->setRelocationModel(Reloc::PIC_)
10351033
.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+
});
10441038
}
10451039

10461040
auto J = ExitOnErr(Builder.create());

0 commit comments

Comments
 (0)