[PATCH] D51606: [XRay] Remove the deprecated __xray_log_init API

Volodymyr Sapsai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 19 17:34:55 PDT 2018


vsapsai added a comment.

The repro is

  // $COMPILER_DIR/bin/clang++ -O0 -arch x86_64 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  main.cpp  -o a.out -Wl,-no_pie -fxray-instrument
  //
  // or
  //
  // $COMPILER_DIR/bin/clang++ main.cpp -o a.out -fxray-instrument
  
  #include "xray/xray_log_interface.h"
  
  int main(int argc, char *argv[]) {
      XRayLogRegisterStatus status = __xray_log_select_mode("xray-fdr");
      return status;
  }

I checked that we link with correct libraries, so seems like XRay currently is just not working on macOS.


Repository:
  rL LLVM

https://reviews.llvm.org/D51606





More information about the llvm-commits mailing list