Add new option --thinlto-full-index to work together with --thinlto-index-only= to produce an extended index list including both prebuilt native and bitcode objects.
For file name thinlto.index given to --thinlto-index-only=, the new option writes the extended list to thinlto.index.full. Then distributed backend can use thinlto.index to guide its compilation and use thinlto.index.full can be fed into final link as the full input list with the intended resolution order.
Currently --thinlto-index-only appends to the list for non-lazy bitcode object file as they are encountered and lazy bitcode object files when they are parsed. It basically emits the symbol resolution order for those files. However when user inputs consist of both prebuilt native objects and bitcode objects, the list is incomplete and it is hard to achieve the same symbol resolution order during final link to produce the same result as the inputs were going through local ThinLTO.
--thinlto-full-index appends to the list for non-lazy object files, both native and bitcode, as they are encountered and lazy object files, both native and bitcode, when they are parsed.