diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-04 03:13:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-04 03:13:39 +0000 |
commit | 310fbbf7f7113924e871f57f8b813ca0bb854b77 (patch) | |
tree | 6daf0ced54aae9f7bdf0793afdeb6009924737e6 | |
parent | dc78d3a80004d37ae5eea95adbc3b989b70d202d (diff) | |
download | external_llvm-310fbbf7f7113924e871f57f8b813ca0bb854b77.zip external_llvm-310fbbf7f7113924e871f57f8b813ca0bb854b77.tar.gz external_llvm-310fbbf7f7113924e871f57f8b813ca0bb854b77.tar.bz2 |
add a helper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36729 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ParameterAttributes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h index 86287e0..35d3476 100644 --- a/include/llvm/ParameterAttributes.h +++ b/include/llvm/ParameterAttributes.h @@ -161,6 +161,10 @@ class ParamAttrsList : public FoldingSetNode { return attrs[attr_index].index; } + uint16_t getParamAttrsAtIndex(unsigned attr_index) const { + return attrs[attr_index].attrs; + } + /// Determines how many parameter attributes are set in this ParamAttrsList. /// This says nothing about how many parameters the function has. It also /// says nothing about the highest parameter index that has attributes. |