diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-06-12 15:42:51 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-06-12 15:42:51 +0000 | 
| commit | 56fe8f14099930935e3870e3e823c322a85c1c89 (patch) | |
| tree | b3032e51d630e8070e9e08d6641648f195316a80 /include/llvm/Attributes.h | |
| parent | 6b943ff3a3f8617113ecbf611cf0f8957e4e19d2 (diff) | |
Notes
Diffstat (limited to 'include/llvm/Attributes.h')
| -rw-r--r-- | include/llvm/Attributes.h | 16 | 
1 files changed, 15 insertions, 1 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index da6188b1a8ea..8b69d6ecc16a 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -67,6 +67,20 @@ const Attributes StackAlignment  = 7<<26; ///< Alignment of stack for                                            ///alignstack(1))  const Attributes Hotpatch    = 1<<29;     ///< Function should have special                                            ///'hotpatch' sequence in prologue +const Attributes UWTable     = 1<<30;     ///< Function must be in a unwind +                                          ///table + +/// Note that uwtable is about the ABI or the user mandating an entry in the +/// unwind table. The nounwind attribute is about an exception passing by the +/// function. +/// In a theoretical system that uses tables for profiling and sjlj for +/// exceptions, they would be fully independent. In a normal system that +/// uses tables for both, the semantics are: +/// nil                = Needs an entry because an exception might pass by. +/// nounwind           = No need for an entry +/// uwtable            = Needs an entry because the ABI says so and because +///                      an exception might pass by. +/// uwtable + nounwind = Needs an entry because the ABI says so.  /// @brief Attributes that only apply to function parameters.  const Attributes ParameterOnly = ByVal | Nest | StructRet | NoCapture; @@ -76,7 +90,7 @@ const Attributes ParameterOnly = ByVal | Nest | StructRet | NoCapture;  const Attributes FunctionOnly = NoReturn | NoUnwind | ReadNone | ReadOnly |    NoInline | AlwaysInline | OptimizeForSize | StackProtect | StackProtectReq |    NoRedZone | NoImplicitFloat | Naked | InlineHint | StackAlignment | -  Hotpatch; +  Hotpatch | UWTable;  /// @brief Parameter attributes that do not apply to vararg call arguments.  const Attributes VarArgsIncompatible = StructRet;  | 
