xref: /llvm-project/llvm/test/tools/llvm-xray/X86/extract-instrmap-macho.ll (revision 9aa789820027e9d1dcec489b269cf94db31624b8)
1; This test makes sure we can extract the instrumentation map from an
2; XRay-instrumented object file.
3;
4; RUN: llvm-xray extract %S/Inputs/instr-map-mach.o -s | FileCheck %s
5
6; CHECK:      ---
7; CHECK-NEXT: - { id: 1, address: 0x0, function: 0x0, kind: function-enter, always-instrument: true, function-name: 'task(void*)' }
8; CHECK-NEXT: - { id: 1, address: 0x162, function: 0x0, kind: function-exit, always-instrument: true, function-name: 'task(void*)' }
9; CHECK-NEXT: ...
10