diff options
| author | Lang Hames <lhames@gmail.com> | 2022-11-13 22:12:09 -0800 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2022-12-19 14:56:08 -0800 |
| commit | bf6d7ca9870beb66766e2c087f5109eeb538f530 (patch) | |
| tree | ddfab9a7ae193431e93f5bc9b34aad1576c09a8c /llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin | |
| parent | 1a22f1b64679f6b6d83ba8d4e395908eee65773d (diff) | |
[ORC] Add JITDylib argument to ResourceManager notify-removing/transferring ops.
In some cases it's helpful to group trackers by JITDylib. E.g. Platform classes
may want to track initializer symbols with a `JITDylib -> Tracker -> [ Symbol ]`
map. This makes it easy to collect all symbols for the JITDylib, while still
allowing efficient removal of a single tracker. Passing the JITDylib as an
argument to ResourceManager::notifyRemovingResources and
ResourceManager::notifyTransferringResources supports such use-cases.
Diffstat (limited to 'llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin')
| -rw-r--r-- | llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp b/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp index 56da4e486f69..dd097a15b15e 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp +++ b/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp @@ -83,11 +83,11 @@ public: return Error::success(); } - Error notifyRemovingResources(ResourceKey K) override { + Error notifyRemovingResources(JITDylib &JD, ResourceKey K) override { return Error::success(); } - void notifyTransferringResources(ResourceKey DstKey, + void notifyTransferringResources(JITDylib &JD, ResourceKey DstKey, ResourceKey SrcKey) override {} private: |
