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
8 lines
302 B
LLVM
8 lines
302 B
LLVM
; RUN: opt -module-summary %s -o %t.o
|
|
; RUN: llvm-cat -b -o %t2.o %t.o %t.o
|
|
; RUN: not llvm-lto2 run -o %t3.o %t2.o 2>&1 | FileCheck %s
|
|
; CHECK: Expected at most one ThinLTO module per bitcode file
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|