In order to correctly pass options to LLVM, including options containing spaces which are used as delimiters for multiple options in lto_codegen_debug_options, add a new API: lto_codegen_debug_options_array.
Unfortunately, tools/lto has no testing infrastructure yet, so there are no tests associated with this patch.
Maybe it would be cleaner if remove the old setCodeGenDebugOptions implementation and make the old C API to build an array and call the new interface?