bolt/deps/llvm-18.1.8/clang/test/CodeGen/xray-function-index.c

9 lines
398 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -S -triple x86_64 -fxray-instrument -fxray-instruction-threshold=1 %s -o - | FileCheck %s
// RUN: %clang_cc1 -S -triple x86_64 -fxray-instrument -fxray-instruction-threshold=1 -fno-xray-function-index %s -o - | FileCheck %s --check-prefix=NO
// CHECK: .section xray_fn_idx,"ao",@progbits,foo
// NO-NOT: .section xray_fn_idx
void foo(void) {}