@@ -76,7 +76,8 @@ TEST(MapperJITLinkMemoryManagerTest, InProcess) {
7676
7777 StringRef Hello = " hello" ;
7878 auto SSA1 = jitlink::SimpleSegmentAlloc::Create (
79- *MemMgr, nullptr , {{MemProt::Read, {Hello.size (), Align (1 )}}});
79+ *MemMgr, std::make_shared<orc::SymbolStringPool>(), nullptr ,
80+ {{MemProt::Read, {Hello.size (), Align (1 )}}});
8081 EXPECT_THAT_EXPECTED (SSA1, Succeeded ());
8182
8283 EXPECT_EQ (Counter->ReserveCount , 1 );
@@ -92,7 +93,8 @@ TEST(MapperJITLinkMemoryManagerTest, InProcess) {
9293 EXPECT_EQ (Counter->InitCount , 1 );
9394
9495 auto SSA2 = jitlink::SimpleSegmentAlloc::Create (
95- *MemMgr, nullptr , {{MemProt::Read, {Hello.size (), Align (1 )}}});
96+ *MemMgr, std::make_shared<orc::SymbolStringPool>(), nullptr ,
97+ {{MemProt::Read, {Hello.size (), Align (1 )}}});
9698 EXPECT_THAT_EXPECTED (SSA2, Succeeded ());
9799
98100 // last reservation should be reused
@@ -135,17 +137,18 @@ TEST(MapperJITLinkMemoryManagerTest, Coalescing) {
135137 auto Mapper = cantFail (InProcessMemoryMapper::Create ());
136138 auto MemMgr = std::make_unique<MapperJITLinkMemoryManager>(16 * 1024 * 1024 ,
137139 std::move (Mapper));
140+ auto SSP = std::make_shared<orc::SymbolStringPool>();
138141
139142 auto SSA1 = jitlink::SimpleSegmentAlloc::Create (
140- *MemMgr, nullptr , {{MemProt::Read, {1024 , Align (1 )}}});
143+ *MemMgr, SSP, nullptr , {{MemProt::Read, {1024 , Align (1 )}}});
141144 EXPECT_THAT_EXPECTED (SSA1, Succeeded ());
142145 auto SegInfo1 = SSA1->getSegInfo (MemProt::Read);
143146 ExecutorAddr TargetAddr1 (SegInfo1.Addr );
144147 auto FA1 = SSA1->finalize ();
145148 EXPECT_THAT_EXPECTED (FA1, Succeeded ());
146149
147150 auto SSA2 = jitlink::SimpleSegmentAlloc::Create (
148- *MemMgr, nullptr , {{MemProt::Read, {1024 , Align (1 )}}});
151+ *MemMgr, SSP, nullptr , {{MemProt::Read, {1024 , Align (1 )}}});
149152 EXPECT_THAT_EXPECTED (SSA2, Succeeded ());
150153 auto FA2 = SSA2->finalize ();
151154 EXPECT_THAT_EXPECTED (FA2, Succeeded ());
@@ -157,7 +160,7 @@ TEST(MapperJITLinkMemoryManagerTest, Coalescing) {
157160 EXPECT_THAT_ERROR (std::move (Err3), Succeeded ());
158161
159162 auto SSA3 = jitlink::SimpleSegmentAlloc::Create (
160- *MemMgr, nullptr , {{MemProt::Read, {2048 , Align (1 )}}});
163+ *MemMgr, SSP, nullptr , {{MemProt::Read, {2048 , Align (1 )}}});
161164 EXPECT_THAT_EXPECTED (SSA3, Succeeded ());
162165
163166 auto SegInfo3 = SSA3->getSegInfo (MemProt::Read);
0 commit comments