1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/tools/llvm-dlltool
Martin Storsjö 3f31f63125 [llvm-dlltool] Imply the target arch from a tool triple prefix
Also use the default LLVM target as default for dlltool. This
matches how GNU dlltool behaves; it is compiled with one default
target, which is used if no option is provided.

Extend the anonymous namespace in the implementation file instead
of using static functions.

Based on a patch by Mateusz Mikuła.

The effect of the default LLVM target, if neither the -m option
nor a tool triple prefix is provided, isn't tested, as we can't
make assumptions about what it is set to.

(We could make the default be forced to one of the four supported
architectures if the default triple is another arch, and then just
test that llvm-dlltool without an -m option is able to produce an
import library, without checking the actual architecture though.)

Differential Revision: https://reviews.llvm.org/D104212
2021-06-17 13:02:35 +03:00
..
coff-decorated.def
coff-exports.def
coff-noname.def
coff-weak-exports.def
lit.local.cfg
machine-opt.def [llvm-dlltool] [test] Add a testcase for all machine option types. NFC. 2021-06-17 13:02:35 +03:00
tool-name.test
triple-prefix.def [llvm-dlltool] Imply the target arch from a tool triple prefix 2021-06-17 13:02:35 +03:00