mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 19:31:50 +00:00
The MCJIT memory manager needs to initialize its Module member.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01765eb0a1
commit
c154514e2d
@ -58,7 +58,7 @@ ExecutionEngine *MCJIT::createJIT(Module *M,
|
||||
|
||||
// If the target supports JIT code generation, create the JIT.
|
||||
if (TargetJITInfo *TJ = TM->getJITInfo())
|
||||
return new MCJIT(M, TM, *TJ, new MCJITMemoryManager(JMM), OptLevel,
|
||||
return new MCJIT(M, TM, *TJ, new MCJITMemoryManager(JMM, M), OptLevel,
|
||||
GVsWithCode);
|
||||
|
||||
if (ErrorStr)
|
||||
|
@ -26,7 +26,7 @@ class MCJITMemoryManager : public RTDyldMemoryManager {
|
||||
// FIXME: Multiple modules.
|
||||
Module *M;
|
||||
public:
|
||||
MCJITMemoryManager(JITMemoryManager *jmm) : JMM(jmm) {}
|
||||
MCJITMemoryManager(JITMemoryManager *jmm, Module *m) : JMM(jmm), M(m) {}
|
||||
|
||||
// Allocate ActualSize bytes, or more, for the named function. Return
|
||||
// a pointer to the allocated memory and update Size to reflect how much
|
||||
|
Loading…
x
Reference in New Issue
Block a user