Skip to content

Commit 98f9f73

Browse files
committed
[Sema] Allow function attribute patchable_function_entry on aarch64_be
Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D79495 (cherry picked from commit 57a1c1b)
1 parent 8e7ae35 commit 98f9f73

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def XRayLogArgs : InheritableAttr {
685685

686686
def PatchableFunctionEntry
687687
: InheritableAttr,
688-
TargetSpecificAttr<TargetArch<["aarch64", "x86", "x86_64"]>> {
688+
TargetSpecificAttr<TargetArch<["aarch64", "aarch64_be", "x86", "x86_64"]>> {
689689
let Spellings = [GCC<"patchable_function_entry">];
690690
let Subjects = SubjectList<[Function, ObjCMethod]>;
691691
let Args = [UnsignedArgument<"Count">, DefaultIntArgument<"Offset", 0>];

clang/test/Sema/patchable-function-entry-attr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_cc1 -triple aarch64 -fsyntax-only -verify=silence %s
2+
// RUN: %clang_cc1 -triple aarch64_be -fsyntax-only -verify=silence %s
23
// RUN: %clang_cc1 -triple i386 -fsyntax-only -verify=silence %s
34
// RUN: %clang_cc1 -triple x86_64 -fsyntax-only -verify=silence %s
45
// RUN: %clang_cc1 -triple ppc64le -fsyntax-only -verify %s

0 commit comments

Comments
 (0)