diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2024-03-06 21:37:35 +0100 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2024-03-06 21:37:35 +0100 |
commit | d4f4f802363d4227c61553872bdd61abcdeb8c08 (patch) | |
tree | f3bf6eb0bc4f502a54278ef4029eb40ed0ec3bdf | |
parent | 5ab86ef7c1bf66e7ae3b6fed97084715484c34e3 (diff) | |
download | llvm-d4f4f802363d4227c61553872bdd61abcdeb8c08.zip llvm-d4f4f802363d4227c61553872bdd61abcdeb8c08.tar.gz llvm-d4f4f802363d4227c61553872bdd61abcdeb8c08.tar.bz2 |
Revert "[libomptarget] Fix CUDA plugin build regression"
This reverts commit b64482e23eefaef7738fde35d0b7c4174aaa6597.
-rw-r--r-- | openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp b/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp index e9742c9..f85a00c 100644 --- a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp +++ b/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp @@ -1160,7 +1160,7 @@ private: // automatically so we must create it ourselves. The backend will emit // several globals that contain function pointers we can call. These are // prefixed with a known name due to Nvidia's lack of section support. - auto ELFObjOrErr = ELF64LEObjectFile::create(Image.getMemoryBuffer()); + auto ELFObjOrErr = Handler.getELFObjectFile(Image); if (!ELFObjOrErr) return ELFObjOrErr.takeError(); |