llvm-lto2: Move the LTO::run() action behind a subcommand.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 11 Apr 2017 18:12:00 +0000 (18:12 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 11 Apr 2017 18:12:00 +0000 (18:12 +0000)
commit7faa60c406e501d4b78f1355a89de68023d78381
tree161f4e5acb324920181eae00ce1ccadc6e9385e0
parent271b2245f40af1c363d10404d0c4d7c5e64d19c3
llvm-lto2: Move the LTO::run() action behind a subcommand.

Move LTO::run() to a "run" subcommand so that we can introduce new subcommands
for testing different parts of the LTO implementation.

This doesn't use llvm::cl subcommands because it doesn't appear to be currently
possible to pass an argument not associated with a subcommand to a subcommand
(e.g. -lto-use-new-pm, -mcpu=yonah).

Differential Revision: https://reviews.llvm.org/D31410

llvm-svn: 299967
36 files changed:
llvm/test/LTO/Resolution/X86/alias.ll
llvm/test/LTO/Resolution/X86/asm-output.ll
llvm/test/LTO/Resolution/X86/comdat.ll
llvm/test/LTO/Resolution/X86/common2.ll
llvm/test/LTO/Resolution/X86/commons.ll
llvm/test/LTO/Resolution/X86/diagnostic-handler-remarks-with-hotness.ll
llvm/test/LTO/Resolution/X86/diagnostic-handler-remarks.ll
llvm/test/LTO/Resolution/X86/empty-bitcode.test
llvm/test/LTO/Resolution/X86/intrinsic.ll
llvm/test/LTO/Resolution/X86/link-odr-availextern.ll
llvm/test/LTO/Resolution/X86/lowertypetests.ll
llvm/test/LTO/Resolution/X86/mixed_lto.ll
llvm/test/LTO/Resolution/X86/multi-thinlto.ll
llvm/test/LTO/X86/symver-asm.ll
llvm/test/LTO/X86/symver-asm2.ll
llvm/test/ThinLTO/X86/cache-config.ll
llvm/test/ThinLTO/X86/cache-import-lists.ll
llvm/test/ThinLTO/X86/cache-typeid-resolutions.ll
llvm/test/ThinLTO/X86/cache.ll
llvm/test/ThinLTO/X86/deadstrip.ll
llvm/test/ThinLTO/X86/debuginfo-compositetype-import.ll
llvm/test/ThinLTO/X86/dicompositetype-unique.ll
llvm/test/ThinLTO/X86/distributed_import.ll
llvm/test/ThinLTO/X86/emit_imports.ll
llvm/test/ThinLTO/X86/empty_module_with_cache.ll
llvm/test/ThinLTO/X86/error-newpm.ll
llvm/test/ThinLTO/X86/funcimport2.ll
llvm/test/ThinLTO/X86/internalize.ll
llvm/test/ThinLTO/X86/linkonce_aliasee_ref_import.ll
llvm/test/ThinLTO/X86/module_asm2.ll
llvm/test/ThinLTO/X86/module_asm_glob.ll
llvm/test/ThinLTO/X86/reference_non_importable.ll
llvm/test/tools/llvm-lto2/X86/nodatalayout.ll
llvm/test/tools/llvm-lto2/X86/pipeline.ll
llvm/test/tools/llvm-lto2/errors.ll
llvm/tools/llvm-lto2/llvm-lto2.cpp