| 1 |
REQUIRES: system-darwin |
| 2 |
|
| 3 |
RUN: rm -rf %t |
| 4 |
RUN: mkdir -p %t/private/tmp/remarks |
| 5 |
RUN: cat %p/../Inputs/remarks/fat.macho.remarks.x86 > %t/fat.macho.remarks.x86 |
| 6 |
RUN: llvm-remarkutil yaml2bitstream %p/../Inputs/private/tmp/remarks/fat.macho.remarks.x86_64.opt.yaml -o %t/private/tmp/remarks/fat.macho.remarks.x86_64.opt.bitstream |
| 7 |
RUN: llvm-remarkutil yaml2bitstream %p/../Inputs/private/tmp/remarks/fat.macho.remarks.x86_64h.opt.yaml -o %t/private/tmp/remarks/fat.macho.remarks.x86_64h.opt.bitstream |
| 8 |
|
| 9 |
RUN: dsymutil -oso-prepend-path=%p/../Inputs -remarks-prepend-path=%t %t/fat.macho.remarks.x86 |
| 10 |
|
| 11 |
Check that the remark files in the bundle exist and are all sane: |
| 12 |
RUN: llvm-bcanalyzer -dump %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-x86_64h | FileCheck %s |
| 13 |
RUN: llvm-bcanalyzer -dump %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-x86_64 | FileCheck %s |
| 14 |
|
| 15 |
RUN: dsymutil --linker parallel -oso-prepend-path=%p/../Inputs -remarks-prepend-path=%t %t/fat.macho.remarks.x86 |
| 16 |
|
| 17 |
Check that the remark files in the bundle exist and are all sane: |
| 18 |
RUN: llvm-bcanalyzer -dump %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-x86_64h | FileCheck %s |
| 19 |
RUN: llvm-bcanalyzer -dump %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-x86_64 | FileCheck %s |
| 20 |
|
| 21 |
CHECK: <Meta |
| 22 |
CHECK: <Remark Num |
| 23 |
CHECK: <Remark Num |
| 24 |
CHECK: <Remark Num |
| 25 |
CHECK-NOT: <Remark Num |
| 26 |
CHECK: <Meta |