aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-22 00:32:02 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-22 00:32:02 +0000
commitac86cc1b7e8809005df0c947147eff2d042d8fe0 (patch)
treeb57dc2e47effd37c4a1b220094b1750828844ee6
parentec43a0662a468ca0b48580e174ca861512e778cd (diff)
For PR1145:
Add the NoUnwindAttribute to allow explicit marking of functions that do not unwind the stack via the unwind instruction. This is akin to gcc's NoThrow attribute and used for optimizing exception handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35250 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/DerivedTypes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index dadbdcc3ad..4b24d876be 100644
--- a/include/llvm/DerivedTypes.h
+++ b/include/llvm/DerivedTypes.h
@@ -148,7 +148,8 @@ public:
SExtAttribute = 1 << 1, ///< sign extended before/after call
NoReturnAttribute = 1 << 2, ///< mark the function as not returning
InRegAttribute = 1 << 3, ///< force argument to be passed in register
- StructRetAttribute= 1 << 4 ///< hidden pointer to structure to return
+ StructRetAttribute= 1 << 4, ///< hidden pointer to structure to return
+ NoUnwindAttribute = 1 << 5 ///< Function doesn't unwind stack
};
typedef std::vector<ParameterAttributes> ParamAttrsList;
private: