[lld][Driver] The driver was creating linker inputs twice

Also add a llvm_unreachable call so that the linker will trip on unhandled
inputElement types.