66# Synthesize raw cgdata without the header (24 byte) from the indexed cgdata.
77# RUN: llvm-cgdata --convert --format binary %t/raw-1.cgtext -o %t/raw-1.cgdata
88# 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
1010# RUN: llvm-cgdata --convert --format binary %t/raw-2.cgtext -o %t/raw-2.cgdata
1111# 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
1313
1414# RUN: llvm-mc -filetype obj -triple arm64-apple-darwin %t/merge-1.s -o %t/merge-1.o
1515# RUN: llvm-mc -filetype obj -triple arm64-apple-darwin %t/merge-2.s -o %t/merge-2.o
2828
2929# We can also generate the merged codegen data from the executable that is not dead-stripped.
3030# RUN: llvm-objdump -h %t/out| FileCheck %s
31- CHECK: __llvm_outline
31+ # CHECK: __llvm_outline
3232# RUN: llvm-cgdata --merge %t/out -o %t/merge-cgdata-exe
3333# RUN: diff %t/merge-cgdata-exe %t/merge-cgdata
3434
@@ -42,7 +42,7 @@ CHECK: __llvm_outline
4242
4343# Ensure no __llvm_outline section remains in the executable.
4444# RUN: llvm-objdump -h %t/out-strip | FileCheck %s --check-prefix=STRIP
45- STRIP-NOT: __llvm_outline
45+ # STRIP-NOT: __llvm_outline
4646
4747#--- raw-1.cgtext
4848:outlined_hash_tree
@@ -60,11 +60,6 @@ STRIP-NOT: __llvm_outline
6060 SuccessorIds: [ ]
6161...
6262
63- #--- merge-1-template.s
64- .section __DATA,__llvm_outline
65- _data:
66- .byte <RAW_1_BYTES>
67-
6863#--- raw-2.cgtext
6964:outlined_hash_tree
70650:
@@ -81,10 +76,10 @@ _data:
8176 SuccessorIds: [ ]
8277...
8378
84- #--- merge-2- template.s
79+ #--- merge-template.s
8580.section __DATA,__llvm_outline
8681_data:
87- .byte <RAW_2_BYTES >
82+ .byte <RAW_BYTES >
8883
8984#--- main.s
9085.globl _main
0 commit comments