mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
6517513ff1
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
14 lines
371 B
LLVM
14 lines
371 B
LLVM
; RUN: opt -module-summary %s -o %t1.bc
|
|
; RUN: not llvm-lto2 run %t1.bc -o %t.o \
|
|
; RUN: -r=%t1.bc,_tinkywinky,pxl \
|
|
; RUN: -lto-use-new-pm 2>&1 | FileCheck %s
|
|
|
|
; CHECK: ThinLTO not supported with the new PM yet!
|
|
|
|
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-apple-macosx10.11.0"
|
|
|
|
define void @tinkywinky() {
|
|
ret void
|
|
}
|