The clang-linker-wrapper is responsible for performing embedded
linking jobs for the offloading device. In the linker wrapper we need to
implement our own handling of LTO to account for the diverse landscape
of linkers and assemblers for accelerators. However, we end up
duplication a lot of functionality. This patch changes the argument
generation for the device to match the arguments we use for host LTO.
This will make it much easier to add extra arguments.
One thing to be careful of however, is that not all linkers will not
accept -plugin-opt arguments if there is not a corresonding -plugin.
In order to combat this we need to make sure that all -plugin-opt
arguments indented for the device's LTO are not propagated to the host
linking job if we are using a linker that does not support it.