|
@@ -67,7 +67,7 @@ static bool testSetProcessAllSections(std::unique_ptr<MemoryBuffer> Obj,
|
|
bool DebugSectionSeen = false;
|
|
bool DebugSectionSeen = false;
|
|
auto MM = std::make_shared<MemoryManagerWrapper>(DebugSectionSeen);
|
|
auto MM = std::make_shared<MemoryManagerWrapper>(DebugSectionSeen);
|
|
|
|
|
|
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
|
|
|
|
|
|
+ ExecutionSession ES;
|
|
auto &JD = ES.createJITDylib("main");
|
|
auto &JD = ES.createJITDylib("main");
|
|
auto Foo = ES.getSymbolStringPool().intern("foo");
|
|
auto Foo = ES.getSymbolStringPool().intern("foo");
|
|
|
|
|
|
@@ -261,7 +261,7 @@ TEST(RTDyldObjectLinkingLayer2Test, NoDuplicateFinalization) {
|
|
return;
|
|
return;
|
|
|
|
|
|
LLVMContext Context;
|
|
LLVMContext Context;
|
|
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
|
|
|
|
|
|
+ ExecutionSession ES;
|
|
auto &JD = ES.createJITDylib("main");
|
|
auto &JD = ES.createJITDylib("main");
|
|
|
|
|
|
auto Foo = ES.getSymbolStringPool().intern("foo");
|
|
auto Foo = ES.getSymbolStringPool().intern("foo");
|
|
@@ -338,7 +338,7 @@ TEST(RTDyldObjectLinkingLayer2Test, NoPrematureAllocation) {
|
|
if (!TM)
|
|
if (!TM)
|
|
return;
|
|
return;
|
|
|
|
|
|
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
|
|
|
|
|
|
+ ExecutionSession ES;
|
|
auto &JD = ES.createJITDylib("main");
|
|
auto &JD = ES.createJITDylib("main");
|
|
|
|
|
|
auto Foo = ES.getSymbolStringPool().intern("foo");
|
|
auto Foo = ES.getSymbolStringPool().intern("foo");
|
|
@@ -392,7 +392,7 @@ TEST(RTDyldObjectLinkingLayer2Test, NoPrematureAllocation) {
|
|
}
|
|
}
|
|
|
|
|
|
TEST(RTDyldObjectLinkingLayer2Test, TestNotifyLoadedSignature) {
|
|
TEST(RTDyldObjectLinkingLayer2Test, TestNotifyLoadedSignature) {
|
|
- ExecutionSession ES(std::make_shared<SymbolStringPool>());
|
|
|
|
|
|
+ ExecutionSession ES;
|
|
RTDyldObjectLinkingLayer2 ObjLayer(
|
|
RTDyldObjectLinkingLayer2 ObjLayer(
|
|
ES,
|
|
ES,
|
|
[](VModuleKey) -> std::shared_ptr<RuntimeDyld::MemoryManager> {
|
|
[](VModuleKey) -> std::shared_ptr<RuntimeDyld::MemoryManager> {
|