6
6
# Synthesize raw cgdata without the header (24 byte) from the indexed cgdata.
7
7
# RUN: llvm-cgdata --convert --format binary %t/raw-1.cgtext -o %t/raw-1.cgdata
8
8
# RUN: od -t x1 -j 24 -An %t/raw-1.cgdata | tr -d '\n\r\t' | sed 's/ \+/ /g; s/^ *//; s/ *$//; s/ /,0x/g; s/^/0x/' > %t/raw-1-bytes.txt
9
- # RUN: sed "s/<RAW_1_BYTES >/$(cat %t/raw-1-bytes.txt)/g" %t/merge-1 -template.s > %t/merge-1.s
9
+ # RUN: sed "s/<RAW_BYTES >/$(cat %t/raw-1-bytes.txt)/g" %t/merge-template.s > %t/merge-1.s
10
10
# RUN: llvm-cgdata --convert --format binary %t/raw-2.cgtext -o %t/raw-2.cgdata
11
11
# RUN: od -t x1 -j 24 -An %t/raw-2.cgdata | tr -d '\n\r\t' | sed 's/ \+/ /g; s/^ *//; s/ *$//; s/ /,0x/g; s/^/0x/' > %t/raw-2-bytes.txt
12
- # RUN: sed "s/<RAW_2_BYTES >/$(cat %t/raw-2-bytes.txt)/g" %t/merge-2 -template.s > %t/merge-2.s
12
+ # RUN: sed "s/<RAW_BYTES >/$(cat %t/raw-2-bytes.txt)/g" %t/merge-template.s > %t/merge-2.s
13
13
14
14
# RUN: llvm-mc -filetype obj -triple arm64-apple-darwin %t/merge-1.s -o %t/merge-1.o
15
15
# RUN: llvm-mc -filetype obj -triple arm64-apple-darwin %t/merge-2.s -o %t/merge-2.o
28
28
29
29
# We can also generate the merged codegen data from the executable that is not dead-stripped.
30
30
# RUN: llvm-objdump -h %t/out| FileCheck %s
31
- CHECK: __llvm_outline
31
+ # CHECK: __llvm_outline
32
32
# RUN: llvm-cgdata --merge %t/out -o %t/merge-cgdata-exe
33
33
# RUN: diff %t/merge-cgdata-exe %t/merge-cgdata
34
34
@@ -42,7 +42,7 @@ CHECK: __llvm_outline
42
42
43
43
# Ensure no __llvm_outline section remains in the executable.
44
44
# RUN: llvm-objdump -h %t/out-strip | FileCheck %s --check-prefix=STRIP
45
- STRIP-NOT: __llvm_outline
45
+ # STRIP-NOT: __llvm_outline
46
46
47
47
#--- raw-1.cgtext
48
48
:outlined_hash_tree
@@ -60,11 +60,6 @@ STRIP-NOT: __llvm_outline
60
60
SuccessorIds: [ ]
61
61
...
62
62
63
- #--- merge-1-template.s
64
- .section __DATA,__llvm_outline
65
- _data:
66
- .byte <RAW_1_BYTES>
67
-
68
63
#--- raw-2.cgtext
69
64
:outlined_hash_tree
70
65
0:
@@ -81,10 +76,10 @@ _data:
81
76
SuccessorIds: [ ]
82
77
...
83
78
84
- #--- merge-2- template.s
79
+ #--- merge-template.s
85
80
.section __DATA,__llvm_outline
86
81
_data:
87
- .byte <RAW_2_BYTES >
82
+ .byte <RAW_BYTES >
88
83
89
84
#--- main.s
90
85
.globl _main
0 commit comments