diff options
author | Lang Hames <lhames@gmail.com> | 2018-01-12 00:22:05 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2018-01-12 00:22:05 +0000 |
commit | 462888016706f6ae63fe5254d87d9ffc072507fd (patch) | |
tree | 3ab0d331d5b68bccee043bbc1ae3f030f8cf9208 /llvm/lib/ExecutionEngine/Orc/Core.cpp | |
parent | 8c87213c2651c040bf36aed2b0c49ca7139619b1 (diff) | |
download | bcm5719-llvm-462888016706f6ae63fe5254d87d9ffc072507fd.tar.gz bcm5719-llvm-462888016706f6ae63fe5254d87d9ffc072507fd.zip |
[ORC] Add a stub ExecutionSession and VModuleKey type.
ExecutionSession will represent a running JIT program.
VModuleKey is a unique key assigned to each module added as part of
an ExecutionSession. The Layer concept will be updated in future to
require a VModuleKey when a module is added.
llvm-svn: 322336
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/Core.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/Core.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index e6cd6c2502f..2c6da83ea3c 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp @@ -313,5 +313,11 @@ VSO::LookupResult VSO::lookup(AsynchronousSymbolQuery &Query, return {std::move(MaterializationWork), std::move(Names)}; } +VModuleKey ExecutionSession::allocateVModule() { return ++LastKey; } + +void ExecutionSession::releaseVModule(VModuleKey VMod) { + // FIXME: Recycle keys. +} + } // End namespace orc. } // End namespace llvm. |