diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-14 01:17:59 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-14 01:17:59 +0000 |
commit | 1a0720e8c4ea8a6e66a29483fd1416f3e284b3a3 (patch) | |
tree | 6337a922fbda9d6296f18516ed90fa355072f0fb /clang/test/CodeGen/thinlto_backend.ll | |
parent | 8fec3da00ce186f06dbbf08ff4f38cd90f079308 (diff) | |
download | bcm5719-llvm-1a0720e8c4ea8a6e66a29483fd1416f3e284b3a3.tar.gz bcm5719-llvm-1a0720e8c4ea8a6e66a29483fd1416f3e284b3a3.zip |
LTO: Add support for multi-module bitcode files.
Differential Revision: https://reviews.llvm.org/D27313
llvm-svn: 289621
Diffstat (limited to 'clang/test/CodeGen/thinlto_backend.ll')
-rw-r--r-- | clang/test/CodeGen/thinlto_backend.ll | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/test/CodeGen/thinlto_backend.ll b/clang/test/CodeGen/thinlto_backend.ll index 0fb2643e037..4b01b1ad15b 100644 --- a/clang/test/CodeGen/thinlto_backend.ll +++ b/clang/test/CodeGen/thinlto_backend.ll @@ -9,8 +9,8 @@ ; CHECK-WARNING: error: invalid argument '-fthinlto-index={{.*}}' only allowed with '-x ir' ; Ensure we get expected error for missing index file -; RUN: %clang -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=bad.thinlto.bc 2>&1 | FileCheck %s -check-prefix=CHECK-ERROR -; CHECK-ERROR: Error loading index file 'bad.thinlto.bc' +; RUN: %clang -O2 -o %t4.o -x ir %t1.o -c -fthinlto-index=bad.thinlto.bc 2>&1 | FileCheck %s -check-prefix=CHECK-ERROR1 +; CHECK-ERROR1: Error loading index file 'bad.thinlto.bc' ; Ensure f2 was imported ; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc @@ -18,6 +18,11 @@ ; CHECK-OBJ: T f1 ; CHECK-OBJ-NOT: U f2 +; Ensure we get expected error for input files without summaries +; RUN: opt -o %t2.o %s +; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc +; CHECK-ERROR2: Error loading imported file '{{.*}}': Could not find module summary + target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" |