diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-11-19 04:01:06 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-11-19 04:01:06 +0000 |
| commit | 9e40b1b61dcefe3fafd4e68fdbcf53c293bc52f1 (patch) | |
| tree | a7b04764a5371c2da35def22f22d456765a8c567 | |
| parent | 86f32f40cfd8980e64a6352b3d909d611781fc74 (diff) | |
| download | bcm5719-llvm-9e40b1b61dcefe3fafd4e68fdbcf53c293bc52f1.tar.gz bcm5719-llvm-9e40b1b61dcefe3fafd4e68fdbcf53c293bc52f1.zip | |
Adding subjects to calling convention attributes. No functional changes intended.
llvm-svn: 195097
| -rw-r--r-- | clang/include/clang/Basic/Attr.td | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td index a149a6a908f..a078f704594 100644 --- a/clang/include/clang/Basic/Attr.td +++ b/clang/include/clang/Basic/Attr.td @@ -266,6 +266,7 @@ def CarriesDependency : InheritableParamAttr { def CDecl : InheritableAttr { let Spellings = [GNU<"cdecl">, CXX11<"gnu", "cdecl">, Keyword<"__cdecl">, Keyword<"_cdecl">]; + let Subjects = [Function, ObjCMethod]; } // cf_audited_transfer indicates that the given function has been @@ -393,6 +394,7 @@ def FallThrough : Attr { def FastCall : InheritableAttr { let Spellings = [GNU<"fastcall">, CXX11<"gnu", "fastcall">, Keyword<"__fastcall">, Keyword<"_fastcall">]; + let Subjects = [Function, ObjCMethod]; } def Final : InheritableAttr { @@ -454,6 +456,7 @@ def MayAlias : InheritableAttr { def MSABI : InheritableAttr { let Spellings = [GNU<"ms_abi">, CXX11<"gnu", "ms_abi">]; + let Subjects = [Function, ObjCMethod]; } def MSP430Interrupt : InheritableAttr, TargetSpecificAttr { @@ -636,10 +639,12 @@ def Packed : InheritableAttr { def PnaclCall : InheritableAttr { let Spellings = [GNU<"pnaclcall">]; + let Subjects = [Function, ObjCMethod]; } def IntelOclBicc : InheritableAttr { let Spellings = [GNU<"intel_ocl_bicc">]; + let Subjects = [Function, ObjCMethod]; } def Pcs : InheritableAttr { @@ -647,6 +652,7 @@ def Pcs : InheritableAttr { let Args = [EnumArgument<"PCS", "PCSType", ["aapcs", "aapcs-vfp"], ["AAPCS", "AAPCS_VFP"]>]; + let Subjects = [Function, ObjCMethod]; } def Pure : InheritableAttr { @@ -690,19 +696,23 @@ def Sentinel : InheritableAttr { def StdCall : InheritableAttr { let Spellings = [GNU<"stdcall">, CXX11<"gnu", "stdcall">, Keyword<"__stdcall">, Keyword<"_stdcall">]; + let Subjects = [Function, ObjCMethod]; } def SysVABI : InheritableAttr { let Spellings = [GNU<"sysv_abi">, CXX11<"gnu", "sysv_abi">]; + let Subjects = [Function, ObjCMethod]; } def ThisCall : InheritableAttr { let Spellings = [GNU<"thiscall">, CXX11<"gnu", "thiscall">, Keyword<"__thiscall">, Keyword<"_thiscall">]; + let Subjects = [Function, ObjCMethod]; } def Pascal : InheritableAttr { let Spellings = [GNU<"pascal">, Keyword<"__pascal">, Keyword<"_pascal">]; + let Subjects = [Function, ObjCMethod]; } def TransparentUnion : InheritableAttr { |

