Skip to content

Commit cc6142c

Browse files
RossBruntonAnthony Tran
authored andcommitted
[Offload] Add a stub unloadBinaryImpl for host device (llvm#145716)
1 parent 1010592 commit cc6142c

File tree

1 file changed

+6
-0
lines changed
  • offload/plugins-nextgen/host/src

1 file changed

+6
-0
lines changed

offload/plugins-nextgen/host/src/rtl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ struct GenELF64DeviceTy : public GenericDeviceTy {
147147
/// Initialize the device, which is a no-op
148148
Error initImpl(GenericPluginTy &Plugin) override { return Plugin::success(); }
149149

150+
/// Unload the binary image
151+
///
152+
/// TODO: This currently does nothing, and should be implemented as part of
153+
/// broader memory handling logic for this plugin
154+
Error unloadBinaryImpl(DeviceImageTy *) override { return Plugin::success(); }
155+
150156
/// Deinitialize the device, which is a no-op
151157
Error deinitImpl() override { return Plugin::success(); }
152158

0 commit comments

Comments
 (0)