File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
; REQUIRES: x86
2
+ ; RUN: rm -rf %t && mkdir %t && cd %t
3
+
2
4
; LTO
3
- ; RUN: llvm-as %s -o %t .o
4
- ; RUN: llvm-as %S/Inputs/defsym-bar.ll -o %t1 .o
5
- ; RUN: ld.lld %t .o %t1 .o -shared -o %t .so -defsym=bar2=bar3 -save-temps
6
- ; RUN: llvm-readelf --symbols %t .so.lto.o | FileCheck --check-prefix=OBJ %s
7
- ; RUN: llvm-objdump -d %t .so | FileCheck %s
5
+ ; RUN: llvm-as %s -o a .o
6
+ ; RUN: llvm-as %S/Inputs/defsym-bar.ll -o b .o
7
+ ; RUN: ld.lld a .o b .o -shared -o a .so -defsym=bar2=bar3 -save-temps
8
+ ; RUN: llvm-readelf --symbols a .so.lto.o | FileCheck --check-prefix=OBJ %s
9
+ ; RUN: llvm-objdump -d a .so | FileCheck %s
8
10
9
11
; ThinLTO
10
- ; RUN: opt -module-summary %s -o %t .o
11
- ; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o %t1 .o
12
- ; RUN: ld.lld %t .o %t1 .o -shared -o %t2 .so -defsym=bar2=bar3 -save-temps
13
- ; RUN: llvm-readelf --symbols %t2 .so1.lto.o | FileCheck --check-prefix=OBJ %s
14
- ; RUN: llvm-objdump -d %t2 .so | FileCheck %s
12
+ ; RUN: opt -module-summary %s -o a .o
13
+ ; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o b .o
14
+ ; RUN: ld.lld a .o b .o -shared -o a2 .so -defsym=bar2=bar3 -save-temps
15
+ ; RUN: llvm-readelf --symbols a2 .so1.lto.o | FileCheck --check-prefix=OBJ %s
16
+ ; RUN: llvm-objdump -d a2 .so | FileCheck %s
15
17
16
18
; OBJ: UND bar2
17
19
You can’t perform that action at this time.
0 commit comments