
Follow up to PR118508, to avoid unnecessary compile time for an empty combind regular LTO module if all modules end up being ThinLTO only. This required minor changes to a few tests to ensure they weren't empty.
19 lines
524 B
LLVM
19 lines
524 B
LLVM
; REQUIRES: plugins, x86-registered-target
|
|
; UNSUPPORTED: target={{.*windows.*}}
|
|
|
|
; RUN: not opt < %s -load-pass-plugin=%t/nonexistent.so -disable-output 2>&1 | FileCheck %s
|
|
|
|
; RUN: opt %s -o %t.o
|
|
; RUN: not llvm-lto2 run -load-pass-plugin=%t/nonexistent.so %t.o -o %t \
|
|
; RUN: -r %t.o,test,plx 2>&1 | \
|
|
; RUN: FileCheck %s
|
|
|
|
; CHECK: Could not load library {{.*}}nonexistent.so
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define void @test() {
|
|
ret void
|
|
}
|