Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 22b25a6

Browse files
committed
These attributes are not supported by GCC and should not be in the gnu namespace. Switching from the GCC spelling to the GNU spelling so that they are only supported with __attribute__(()).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316186 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 65f011e commit 22b25a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/clang/Basic/Attr.td

+4-4
Original file line numberDiff line numberDiff line change
@@ -1758,23 +1758,23 @@ def StdCall : InheritableAttr {
17581758
}
17591759

17601760
def SwiftCall : InheritableAttr {
1761-
let Spellings = [GCC<"swiftcall">];
1761+
let Spellings = [GNU<"swiftcall">];
17621762
// let Subjects = SubjectList<[Function]>;
17631763
let Documentation = [SwiftCallDocs];
17641764
}
17651765

17661766
def SwiftContext : ParameterABIAttr {
1767-
let Spellings = [GCC<"swift_context">];
1767+
let Spellings = [GNU<"swift_context">];
17681768
let Documentation = [SwiftContextDocs];
17691769
}
17701770

17711771
def SwiftErrorResult : ParameterABIAttr {
1772-
let Spellings = [GCC<"swift_error_result">];
1772+
let Spellings = [GNU<"swift_error_result">];
17731773
let Documentation = [SwiftErrorResultDocs];
17741774
}
17751775

17761776
def SwiftIndirectResult : ParameterABIAttr {
1777-
let Spellings = [GCC<"swift_indirect_result">];
1777+
let Spellings = [GNU<"swift_indirect_result">];
17781778
let Documentation = [SwiftIndirectResultDocs];
17791779
}
17801780

0 commit comments

Comments
 (0)