[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)
Brian Cain via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 3 14:12:36 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;
+
----------------
androm3da wrote:
I think we should emit an error if xray shared is enabled but PIC is not enabled. Could you add a test for that?
https://github.com/llvm/llvm-project/pull/90959
More information about the cfe-commits
mailing list