diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-08-18 13:04:00 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-08-18 17:10:13 -0500 |
commit | 4ab4e40fa2944bfd2ed44c63027e7a838043e0fd (patch) | |
tree | 15fa1aee5d64ab942598ef3286372fbddb14c2e4 /llvm/lib/Object/ObjectFile.cpp | |
parent | 8806b4f9b1fce4cb62e93b21fd9c9cc5a45317e3 (diff) | |
download | llvm-4ab4e40fa2944bfd2ed44c63027e7a838043e0fd.zip llvm-4ab4e40fa2944bfd2ed44c63027e7a838043e0fd.tar.gz llvm-4ab4e40fa2944bfd2ed44c63027e7a838043e0fd.tar.bz2 |
[OpenMP] Always pass the optimization level to the linker wrapper
The linker wrapper runs LTO internally, so it needs to know the
optimization level the user requested, if any. Previously this was only
done in `-foffload-lto` mode as we were assuming that this would enble
LTO. However, AMDGPU always performs LTO, and it's possible to run clang
on object files to link without passing this flag. So we should just
respect it always.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D158298
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions