[clang] [compiler-rt] [XRay][AArch64] Support -fxray-shared (PR #114431)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 2 18:20:22 PDT 2024


================
@@ -67,8 +67,12 @@ XRayArgs::XRayArgs(const ToolChain &TC, const ArgList &Args) {
                    false)) {
     XRayShared = true;
 
-    // DSO instrumentation is currently limited to x86_64
-    if (Triple.getArch() != llvm::Triple::x86_64) {
+    // DSO instrumentation is currently limited to x86_64 and aarch64
+    switch (Triple.getArch()) {
+    case llvm::Triple::x86_64:
----------------
MaskRay wrote:

place aarch64 before x86_64

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


More information about the cfe-commits mailing list