aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-01-07 17:16:06 +0000
committerDuncan Sands <baldrick@free.fr>2008-01-07 17:16:06 +0000
commitdbe97dcf092b53023b4e6e3120c227116cdaa9d6 (patch)
tree77b2dcecfd33686814466ce48d121cbdb6f37217 /include
parent7c44f1a5504a21ce9d92b6a9c98b2d5ff18dd0db (diff)
downloadexternal_llvm-dbe97dcf092b53023b4e6e3120c227116cdaa9d6.zip
external_llvm-dbe97dcf092b53023b4e6e3120c227116cdaa9d6.tar.gz
external_llvm-dbe97dcf092b53023b4e6e3120c227116cdaa9d6.tar.bz2
Small cleanup for handling of type/parameter attribute
incompatibility. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ParameterAttributes.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h
index b66f991..0d138fe 100644
--- a/include/llvm/ParameterAttributes.h
+++ b/include/llvm/ParameterAttributes.h
@@ -52,12 +52,6 @@ const uint16_t ParameterOnly = ByVal | InReg | Nest | StructRet;
/// @brief Attributes that only apply to function return values.
const uint16_t ReturnOnly = NoReturn | NoUnwind | ReadNone | ReadOnly;
-/// @brief Attributes that only apply to integers.
-const uint16_t IntegerTypeOnly = SExt | ZExt;
-
-/// @brief Attributes that only apply to pointers.
-const uint16_t PointerTypeOnly = ByVal | Nest | NoAlias | StructRet;
-
/// @brief Attributes that are mutually incompatible.
const uint16_t MutuallyIncompatible[3] = {
ByVal | InReg | Nest | StructRet,
@@ -65,8 +59,8 @@ const uint16_t MutuallyIncompatible[3] = {
ReadNone | ReadOnly
};
-/// @brief Which of the given attributes do not apply to the type.
-uint16_t incompatibleWithType (const Type *Ty, uint16_t attrs);
+/// @brief Which attributes cannot be applied to a type.
+uint16_t typeIncompatible (const Type *Ty);
} // end namespace ParamAttr