OSDN Git Service

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)
commitbe0ad757ca983d9b275023777f6dea711ba9e11e
tree7eb7891cf761c5903bf0e20171d7c522559f7bfc
parent3a60ccfe457b5dbebdb1bc8a25c2d9ef1fbb547d
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

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