Do not allow attributes beyond a function's last
[oota-llvm.git] / include / llvm / ParameterAttributes.h
index 0d138fe0e2f7f2747a883d05cedb7874a65d660b..4106dcb2907ebc6d003b8b1b1db5eacfbd4691dc 100644 (file)
@@ -52,6 +52,9 @@ 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 can apply to vararg call arguments.
+const uint16_t VarArgsCompatible = ByVal;
+
 /// @brief Attributes that are mutually incompatible.
 const uint16_t MutuallyIncompatible[3] = {
   ByVal | InReg | Nest  | StructRet,