diff options
| author | Lang Hames <lhames@gmail.com> | 2016-01-09 20:55:18 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2016-01-09 20:55:18 +0000 |
| commit | 829826bf96bbd31ee5f7038e3980ddce275c6f48 (patch) | |
| tree | c17fd04d404e458c4fb1f592c3bac15595697365 /llvm/tools/lli/OrcLazyJIT.h | |
| parent | 2e7a1849c9eb02a6c0609ab2a9f6ef439f2b3766 (diff) | |
| download | bcm5719-llvm-829826bf96bbd31ee5f7038e3980ddce275c6f48.tar.gz bcm5719-llvm-829826bf96bbd31ee5f7038e3980ddce275c6f48.zip | |
[Orc] Enable user-supplied memory managers in the CompileOnDemand layer.
Previously the CompileOnDemand layer was hard-coded to use a new
SectionMemoryManager for each function when it was called.
llvm-svn: 257265
Diffstat (limited to 'llvm/tools/lli/OrcLazyJIT.h')
| -rw-r--r-- | llvm/tools/lli/OrcLazyJIT.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/lli/OrcLazyJIT.h b/llvm/tools/lli/OrcLazyJIT.h index bb4da33ea9b..2a5b31d1bfb 100644 --- a/llvm/tools/lli/OrcLazyJIT.h +++ b/llvm/tools/lli/OrcLazyJIT.h @@ -105,7 +105,9 @@ public: // Add the module to the JIT. std::vector<std::unique_ptr<Module>> S; S.push_back(std::move(M)); - auto H = CODLayer.addModuleSet(std::move(S), nullptr, std::move(Resolver)); + auto H = CODLayer.addModuleSet(std::move(S), + llvm::make_unique<SectionMemoryManager>(), + std::move(Resolver)); // Run the static constructors, and save the static destructor runner for // execution when the JIT is torn down. |

