Skip to content

Commit b64482e

Browse files
committed
[libomptarget] Fix CUDA plugin build regression
After 3ecd38c, the Handler.getELFObjectFile routine is no longer available. Call ELF64LEObjectFile::create directly, which should always be suitable for CUDA images.
1 parent 3ecd38c commit b64482e

File tree

1 file changed

+1
-1
lines changed
  • openmp/libomptarget/plugins-nextgen/cuda/src

1 file changed

+1
-1
lines changed

openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ struct CUDADeviceTy : public GenericDeviceTy {
11601160
// automatically so we must create it ourselves. The backend will emit
11611161
// several globals that contain function pointers we can call. These are
11621162
// prefixed with a known name due to Nvidia's lack of section support.
1163-
auto ELFObjOrErr = Handler.getELFObjectFile(Image);
1163+
auto ELFObjOrErr = ELF64LEObjectFile::create(Image.getMemoryBuffer());
11641164
if (!ELFObjOrErr)
11651165
return ELFObjOrErr.takeError();
11661166

0 commit comments

Comments
 (0)