[llvm-commits] CVS: llvm/include/llvm/DerivedTypes.h

Reid Spencer reid at x10sys.com
Wed Mar 21 17:32:19 PDT 2007



Changes in directory llvm/include/llvm:

DerivedTypes.h updated: 1.87 -> 1.88
---
Log message:

For PR1145: http://llvm.org/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.


---
Diffs of the changes:  (+2 -1)

 DerivedTypes.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/DerivedTypes.h
diff -u llvm/include/llvm/DerivedTypes.h:1.87 llvm/include/llvm/DerivedTypes.h:1.88
--- llvm/include/llvm/DerivedTypes.h:1.87	Sun Mar  4 17:33:19 2007
+++ llvm/include/llvm/DerivedTypes.h	Wed Mar 21 19:32:02 2007
@@ -148,7 +148,8 @@
     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:






More information about the llvm-commits mailing list