[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)

Sebastian Kreutzer via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 06:36:26 PDT 2024


================
@@ -63,6 +63,10 @@ XRayArgs::XRayArgs(const ToolChain &TC, const ArgList &Args) {
         << XRayInstrument->getSpelling() << Triple.str();
   }
 
+  if (Args.hasFlag(options::OPT_fxray_enable_shared,
+                   options::OPT_fno_xray_enable_shared, false))
+    XRayEnableShared = true;
+
----------------
sebastiankreutzer wrote:

PIC is now required and tested in [clang/test/Driver/XRay/xray-enable-shared.cpp](https://github.com/llvm/llvm-project/pull/90959/files#diff-f1d4e7dfcc8404c912868e2259709fcdd7d86cff83531591a1254c2a69412066)

https://github.com/llvm/llvm-project/pull/90959


More information about the cfe-commits mailing list