• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fxray-instrument -fxray-always-emit-customevents -x c++ \
2 // RUN:     -std=c++11 -triple x86_64-unknown-unknown -emit-llvm -o - %s \
3 // RUN:     | FileCheck %s
4 
5 // CHECK-LABEL: @_Z15neverInstrumentv
neverInstrument()6 [[clang::xray_never_instrument]] void neverInstrument() {
7   static constexpr char kPhase[] = "never";
8   __xray_customevent(kPhase, 5);
9   // CHECK: call void @llvm.xray.customevent(i8*{{.*}}, i32 5)
10 }
11