summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-09-05 20:57:41 +0000
committerLang Hames <lhames@gmail.com>2018-09-05 20:57:41 +0000
commitf6107d4b54eeb1242dadc73920cbbe3bc40787f9 (patch)
tree32c498c6d786eb9960cb04977210e50176e38bbe /llvm/unittests/ExecutionEngine
parentec812ce3d6be4adc467f2899934ef06bab6a7cf2 (diff)
downloadbcm5719-llvm-f6107d4b54eeb1242dadc73920cbbe3bc40787f9.tar.gz
bcm5719-llvm-f6107d4b54eeb1242dadc73920cbbe3bc40787f9.zip
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
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp8
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp
index d6f48c992ae..30cd923b54a 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp
@@ -67,7 +67,7 @@ static bool testSetProcessAllSections(std::unique_ptr<MemoryBuffer> Obj,
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 @@ TEST(RTDyldObjectLinkingLayer2Test, NoDuplicateFinalization) {
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 @@ TEST(RTDyldObjectLinkingLayer2Test, NoPrematureAllocation) {
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, NoPrematureAllocation) {
}
TEST(RTDyldObjectLinkingLayer2Test, TestNotifyLoadedSignature) {
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
RTDyldObjectLinkingLayer2 ObjLayer(
ES,
[](VModuleKey) -> std::shared_ptr<RuntimeDyld::MemoryManager> {
diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
index 94b771f2640..62c6b7dfa31 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
@@ -67,7 +67,7 @@ TEST(RTDyldObjectLinkingLayerTest, TestSetProcessAllSections) {
bool DebugSectionSeen = false;
auto MM = std::make_shared<MemoryManagerWrapper>(DebugSectionSeen);
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
RTDyldObjectLinkingLayer ObjLayer(ES, [&MM](VModuleKey) {
return RTDyldObjectLinkingLayer::Resources{
@@ -123,7 +123,7 @@ TEST_F(RTDyldObjectLinkingLayerExecutionTest, NoDuplicateFinalization) {
if (!SupportsJIT)
return;
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
auto MM = std::make_shared<SectionMemoryManagerWrapper>();
@@ -207,7 +207,7 @@ TEST_F(RTDyldObjectLinkingLayerExecutionTest, NoPrematureAllocation) {
if (!SupportsJIT)
return;
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
auto MM = std::make_shared<SectionMemoryManagerWrapper>();
@@ -268,7 +268,7 @@ TEST_F(RTDyldObjectLinkingLayerExecutionTest, NoPrematureAllocation) {
}
TEST_F(RTDyldObjectLinkingLayerExecutionTest, TestNotifyLoadedSignature) {
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
+ ExecutionSession ES;
RTDyldObjectLinkingLayer ObjLayer(
ES,
[](VModuleKey) {
OpenPOWER on IntegriCloud