summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-06-11 08:11:03 +0000
committerDuncan Sands <baldrick@free.fr>2009-06-11 08:11:03 +0000
commitc3a7992216d6cba88001572a6727de06ba27564b (patch)
treee84274de8383582f333865d875ee060e2cdc8a54 /llvm/include
parent29491f03deb6136f406fe10738fbc4ce7f3c88fa (diff)
downloadbcm5719-llvm-c3a7992216d6cba88001572a6727de06ba27564b.tar.gz
bcm5719-llvm-c3a7992216d6cba88001572a6727de06ba27564b.zip
Cosmetic changes to parameter attribute verification.
llvm-svn: 73188
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Attributes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/Attributes.h b/llvm/include/llvm/Attributes.h
index a594e3223d4..134e3502028 100644
--- a/llvm/include/llvm/Attributes.h
+++ b/llvm/include/llvm/Attributes.h
@@ -61,7 +61,8 @@ const Attributes NoImplicitFloat = 1<<23; /// disable implicit floating point
/// @brief Attributes that only apply to function parameters.
const Attributes ParameterOnly = ByVal | Nest | StructRet | NoCapture;
-/// @brief Attributes that only apply to function.
+/// @brief Attributes that may be applied to the function itself. These cannot
+/// be used on return values or function parameters.
const Attributes FunctionOnly = NoReturn | NoUnwind | ReadNone | ReadOnly |
NoInline | AlwaysInline | OptimizeForSize | StackProtect | StackProtectReq |
NoRedZone | NoImplicitFloat;
@@ -186,7 +187,7 @@ public:
/// getFnAttributes - The function attributes are returned.
Attributes getFnAttributes() const {
- return getAttributes(~0);
+ return getAttributes(~0U);
}
/// paramHasAttr - Return true if the specified parameter index has the
OpenPOWER on IntegriCloud