From: Reid Spencer Date: Thu, 22 Mar 2007 00:32:02 +0000 (+0000) Subject: For PR1145: X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ac86cc1b7e8809005df0c947147eff2d042d8fe0;p=oota-llvm.git 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 --- diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index dadbdcc3add..4b24d876bee 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 ParamAttrsList; private: