diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp b/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp index 6d472c2ba100..180905346d56 100644 --- a/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp +++ b/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp @@ -149,9 +149,9 @@ protected: JITLinkMemoryManager &MemMgr; const JITLinkDylib *JD = nullptr; + ExecutionSession &ES; private: - ExecutionSession &ES; DebugObjectFlags Flags; FinalizedAlloc Alloc; }; @@ -331,8 +331,9 @@ Expected<SimpleSegmentAlloc> ELFDebugObject::finalizeWorkingMemory() { size_t Size = Buffer->getBufferSize(); // Allocate working memory for debug object in read-only segment. - auto Alloc = SimpleSegmentAlloc::Create( - MemMgr, JD, {{MemProt::Read, {Size, Align(PageSize)}}}); + auto Alloc = + SimpleSegmentAlloc::Create(MemMgr, ES.getSymbolStringPool(), JD, + {{MemProt::Read, {Size, Align(PageSize)}}}); if (!Alloc) return Alloc; |
