diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-18 21:50:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-18 21:50:49 +0000 |
commit | 66250e97eff4f9e7dd097ccc50a78446bf013a4c (patch) | |
tree | 43c7d500d872be783e46813899a6ff0b8c2da50e | |
parent | 7d97bf14293d2c741287689f2a547bf3e6fc7dd0 (diff) |
add helper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37631 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ParameterAttributes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h index dcfe095141..c2d60786c2 100644 --- a/include/llvm/ParameterAttributes.h +++ b/include/llvm/ParameterAttributes.h @@ -47,6 +47,13 @@ enum Attributes { 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. |