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 | b4f2d8a056801b17b80c26d0b4e29fe4672f4d74 (patch) | |
tree | 8d730e839b3b771a959e104d5b0751ce6b49604c | |
parent | d56e4919dfff8c20ba9872455fc15aaba093ef69 (diff) | |
download | bcm5719-llvm-b4f2d8a056801b17b80c26d0b4e29fe4672f4d74.tar.gz bcm5719-llvm-b4f2d8a056801b17b80c26d0b4e29fe4672f4d74.zip |
add helper
llvm-svn: 37631
-rw-r--r-- | llvm/include/llvm/ParameterAttributes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/ParameterAttributes.h b/llvm/include/llvm/ParameterAttributes.h index dcfe0951411..c2d60786c25 100644 --- a/llvm/include/llvm/ParameterAttributes.h +++ b/llvm/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. |