[llvm-lib] Write object files in reversed order.
authorJacek Caban <jacek@codeweavers.com>
Thu, 9 Feb 2023 22:46:20 +0000 (00:46 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 9 Feb 2023 22:51:07 +0000 (00:51 +0200)
commit350c89fa75a089060baea83a7ed88ed360f6e918
treecb082a68526e6fd206038deaa8b15dda7fdba422
parent3d570a5c5f6630c8c34c2323e7d04eb1c63c7a32
[llvm-lib] Write object files in reversed order.

This isn't strictly needed, but this matches how MSVC lib.exe writes to
archives, so this makes llvm-lib more compatible and simplifies comparing
output between tools.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D143536
llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
llvm/test/tools/llvm-lib/Inputs/abc.s [new file with mode: 0644]
llvm/test/tools/llvm-lib/duplicate.test
llvm/test/tools/llvm-lib/nest.test
llvm/test/tools/llvm-lib/use-paths.test
llvm/test/tools/llvm-lib/xfghashmap-list.test