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

Chris Lattner sabre at nondot.org
Mon Jun 18 14:51:12 PDT 2007



Changes in directory llvm/include/llvm:

ParameterAttributes.h updated: 1.13 -> 1.14
---
Log message:

add helper


---
Diffs of the changes:  (+7 -0)

 ParameterAttributes.h |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/include/llvm/ParameterAttributes.h
diff -u llvm/include/llvm/ParameterAttributes.h:1.13 llvm/include/llvm/ParameterAttributes.h:1.14
--- llvm/include/llvm/ParameterAttributes.h:1.13	Tue Jun  5 00:28:25 2007
+++ llvm/include/llvm/ParameterAttributes.h	Mon Jun 18 16:50:49 2007
@@ -47,6 +47,13 @@
 struct ParamAttrsWithIndex {
   uint16_t attrs; ///< The attributes that are set, |'d together
   uint16_t index; ///< Index of the parameter for which the attributes apply
+  
+  static ParamAttrsWithIndex get(uint16_t idx, uint16_t attrs) {
+    ParamAttrsWithIndex P;
+    P.index = idx;
+    P.attrs = attrs;
+    return P;
+  }
 };
 
 /// @brief A vector of attribute/index pairs.






More information about the llvm-commits mailing list