Skip to content

Commit 0428f2c

Browse files
authored
[SystemZ][XRay] Enable XRay for SystemZ in clang (#113254)
With the support for xray for SystemZ in place, the option can now be enabled in clang.
1 parent 0b40f97 commit 0428f2c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clang/lib/Driver/XRayArgs.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ XRayArgs::XRayArgs(const ToolChain &TC, const ArgList &Args) {
5353
case llvm::Triple::mipsel:
5454
case llvm::Triple::mips64:
5555
case llvm::Triple::mips64el:
56+
case llvm::Triple::systemz:
5657
break;
5758
default:
5859
D.Diag(diag::err_drv_unsupported_opt_for_target)

clang/test/Driver/XRay/xray-mode-flags.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// RUN: | FileCheck --check-prefix=BASIC %s
55
// RUN: %clang -### --target=aarch64-linux-gnu -fxray-instrument %s 2>&1 \
66
// RUN: | FileCheck --check-prefixes=FDR,BASIC %s
7+
// RUN: %clang -### --target=s390x-linux-gnu -fxray-instrument -fxray-modes=xray-basic %s 2>&1 \
8+
// RUN: | FileCheck --check-prefix=BASIC %s
79
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=all %s 2>&1 \
810
// RUN: | FileCheck --check-prefixes=FDR,BASIC %s
911
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr,xray-basic %s 2>&1 \

0 commit comments

Comments
 (0)