mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 21:06:33 +03:00
nested binds
This commit is contained in:
parent
5c9cd62b30
commit
0184e07380
5 changed files with 146 additions and 14 deletions
|
@ -167,6 +167,12 @@ void JITContext::unregisterBind(void *handle) {
|
|||
bindInstances.erase(handle);
|
||||
}
|
||||
|
||||
bool JITContext::hasBindFunction(const void *handle) const {
|
||||
assert(handle != nullptr);
|
||||
auto it = bindInstances.find(const_cast<void*>(handle));
|
||||
return it != bindInstances.end();
|
||||
}
|
||||
|
||||
void JITContext::removeModule(const ModuleHandleT &handle) {
|
||||
cantFail(compileLayer.removeModule(handle));
|
||||
#if LDC_LLVM_VER >= 700
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue