Remove some unnecessary constructor arguments.
ExecutionSession defaults to creating a new shared pool if none is provided,
so explicitly passing one in is unnecessary.
llvm-svn: 341494
diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp
index d6f48c9..30cd923 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp
@@ -67,7 +67,7 @@
bool DebugSectionSeen = false;
auto MM = std::make_shared<MemoryManagerWrapper>(DebugSectionSeen);
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
auto &JD = ES.createJITDylib("main");
auto Foo = ES.getSymbolStringPool().intern("foo");
@@ -261,7 +261,7 @@
return;
LLVMContext Context;
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
auto &JD = ES.createJITDylib("main");
auto Foo = ES.getSymbolStringPool().intern("foo");
@@ -338,7 +338,7 @@
if (!TM)
return;
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
auto &JD = ES.createJITDylib("main");
auto Foo = ES.getSymbolStringPool().intern("foo");
@@ -392,7 +392,7 @@
}
TEST(RTDyldObjectLinkingLayer2Test, TestNotifyLoadedSignature) {
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
RTDyldObjectLinkingLayer2 ObjLayer(
ES,
[](VModuleKey) -> std::shared_ptr<RuntimeDyld::MemoryManager> {