[PATCH] D31208: Print out "suppoted targets" and "supported emulations".

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 17:20:44 PDT 2017


ruiu added inline comments.


================
Comment at: lld/ELF/DriverUtils.cpp:130-133
+         << "elf32-i386 elf32-iamcu elf32-littlearm elf32-powerpc "
+         << "elf32-tradbigmips elf32-tradlittlemips elf32-x86-64 "
+         << "elf64-littleaarch64 elf64-powerpc elf64-tradbigmips "
+         << "elf64-tradlittlemips elf64-x86-64\n";
----------------
emaste wrote:
> Is there some way we can ensure this list stays in sync with the ones LLD accepts? I think it would be too easy to forget to update this when adding a new target / emulation.
Some target strings occur only here in the entire LLVM source code,  I'd say there's no easy way to keep this string in sync with the actual behavior. But I think we don't need to worry too much about it because adding a new target is rather rare.


https://reviews.llvm.org/D31208





More information about the llvm-commits mailing list