Add documentation for the pcs attribute, based on r129534's commit message.

llvm-svn: 205160
This commit is contained in:
Nico Weber 2014-03-30 19:45:58 +00:00
parent 6dafe97271
commit 9ee5f9190b
2 changed files with 10 additions and 1 deletions

View File

@ -1030,7 +1030,7 @@ def Pcs : InheritableAttr {
["aapcs", "aapcs-vfp"], ["aapcs", "aapcs-vfp"],
["AAPCS", "AAPCS_VFP"]>]; ["AAPCS", "AAPCS_VFP"]>];
// let Subjects = [Function, ObjCMethod]; // let Subjects = [Function, ObjCMethod];
let Documentation = [Undocumented]; let Documentation = [PcsDocs];
} }
def Pure : InheritableAttr { def Pure : InheritableAttr {

View File

@ -577,6 +577,15 @@ The semantics are as follows:
}]; }];
} }
def PcsDocs : Documentation {
let Category = DocCatFunction;
let Content = [{
On ARM targets, this can attribute can be used to select calling conventions,
similar to ``stdcall`` on x86. Valid parameter values are "aapcs" and
"aapcs-vfp".
}];
}
def DocCatConsumed : DocumentationCategory<"Consumed Annotation Checking"> { def DocCatConsumed : DocumentationCategory<"Consumed Annotation Checking"> {
let Content = [{ let Content = [{
Clang supports additional attributes for checking basic resource management Clang supports additional attributes for checking basic resource management