summaryrefslogtreecommitdiffstats
path: root/lld/test
diff options
context:
space:
mode:
authorRumeet Dhindsa <rdhindsa@google.com>2018-05-08 22:37:57 +0000
committerRumeet Dhindsa <rdhindsa@google.com>2018-05-08 22:37:57 +0000
commitb5b7d6e19c086528613fcf455d2df70d45eb7d38 (patch)
treed0de8282fbd7d82e2159dbac6d4e2b85f3d4638f /lld/test
parentd24dcdd1f74b981eea590ebfb9dfd455cea8a8f6 (diff)
downloadbcm5719-llvm-b5b7d6e19c086528613fcf455d2df70d45eb7d38.tar.gz
bcm5719-llvm-b5b7d6e19c086528613fcf455d2df70d45eb7d38.zip
Add support for LTO plugin option obj-path
Differential Revision: https://reviews.llvm.org/D46598 llvm-svn: 331817
Diffstat (limited to 'lld/test')
-rw-r--r--lld/test/ELF/lto/thinlto.ll11
1 files changed, 6 insertions, 5 deletions
diff --git a/lld/test/ELF/lto/thinlto.ll b/lld/test/ELF/lto/thinlto.ll
index 0cec41d1dbc..227d771d90b 100644
--- a/lld/test/ELF/lto/thinlto.ll
+++ b/lld/test/ELF/lto/thinlto.ll
@@ -49,11 +49,6 @@
; RUN: not ls %t2.o.thinlto.bc
; RUN: not ls %t4.o.thinlto.bc
-; Ensure lld generates one regular LTO file via splitting for ThinLTO builds
-; RUN: rm -f %t.lto.o
-; RUN: ld.lld -save-temps --plugin-opt=thinlto-index-only -shared %t.o %t2.o -o %t
-; RUN: llvm-readobj -h %t.lto.o | FileCheck %s --check-prefix=FORMAT
-
; First force single-threaded mode
; RUN: rm -f %t.lto.o %t1.lto.o
; RUN: ld.lld -save-temps --thinlto-jobs=1 -shared %t.o %t2.o -o %t
@@ -71,6 +66,12 @@
; stable on the final output file itself.
; RUN: ld.lld -shared %t.o %t2.o -o %t2
+; Test to ensure that thinlto-index-only with obj-path creates the file.
+; RUN: rm -f %t5.o
+; RUN: ld.lld --plugin-opt=thinlto-index-only --plugin-opt=obj-path=%t5.o -shared %t.o %t2.o -o %t4
+; RUN: llvm-readobj -h %t5.o | FileCheck %s --check-prefix=FORMAT
+; RUN: llvm-nm %t5.o | count 0
+
; NM: T f
; NM1: T f
; NM1-NOT: U g
OpenPOWER on IntegriCloud