File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 22
22
; RUN: lld-link -out:%t2.exe -entry:main -opt:noref -lldmap:%t2.thinlto.map \
23
23
; RUN: %t.bc -start-lib %t1.bc -end-lib %t2.bc
24
24
; RUN: FileCheck --check-prefix=TEST2 %s < %t2.thinlto.map
25
- ; TEST2-NOT: Name: foo
26
- ; TEST2: bar
27
- ; TEST2-NOT: Name: foo
25
+ ; TEST2: Address Size Align Out In Symbol
26
+ ; TEST2-NOT: {{ }}foo{{$}}
27
+ ; TEST2: {{ }}bar{{$}}
28
+ ; TEST2-NOT: {{ }}foo{{$}}
28
29
;
29
30
; RUN: lld-link -out:%t3.exe -entry:main -opt:noref -lldmap:%t3.map \
30
31
; RUN: %t.obj -start-lib %t1.obj %t2.obj
31
32
; RUN: FileCheck --check-prefix=TEST3 %s < %t3.map
32
33
; RUN: lld-link -out:%t3.exe -entry:main -opt:noref -lldmap:%t3.thinlto.map \
33
34
; RUN: %t.bc -start-lib %t1.bc %t2.bc
34
35
; RUN: FileCheck --check-prefix=TEST3 %s < %t3.thinlto.map
35
- ; TEST3-NOT: foo
36
- ; TEST3-NOT: bar
36
+ ; TEST3: Address Size Align Out In Symbol
37
+ ; TEST3-NOT: {{ }}foo{{$}}
38
+ ; TEST3-NOT: {{ }}bar{{$}}
37
39
38
40
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
39
41
target triple = "x86_64-pc-windows-msvc"
Original file line number Diff line number Diff line change 7
7
# RUN: echo "SECTIONS { foo = 1; }" > %t1.script
8
8
# RUN: ld.lld -o %t1.exe --script %t1.script %tar.a %t.o
9
9
# RUN: llvm-readobj --symbols %t1.exe | FileCheck %s
10
+ # CHECK: Symbols [
10
11
# CHECK-NOT: bar
11
12
# CHECK: foo
12
13
# CHECK-NOT: bar
Original file line number Diff line number Diff line change 3
3
4
4
; RUN: echo "foo = 1;" > %t.script
5
5
; RUN: ld.lld %t.o -o %t2 --script %t.script -save-temps
6
- ; RUN: llvm-readobj --symbols %t2.lto.o | FileCheck %s
6
+ ; RUN: llvm-nm %t2.lto.o | count 0
7
7
8
8
; CHECK-NOT: bar
9
9
; CHECK-NOT: foo
Original file line number Diff line number Diff line change 14
14
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
15
15
16
16
# RUN: ld.lld -o %t.exe %t.o %t.a
17
- # RUN: llvm-readobj --symbols %t.exe | FileCheck --check-prefix=NO-OPT %s
17
+ # RUN: llvm-nm %t.exe | FileCheck --check-prefix=NO-OPT %s
18
18
19
19
# NO-OPT-NOT: foo
20
20
# NO-OPT-NOT: bar
You can’t perform that action at this time.
0 commit comments