summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-04 03:13:39 +0000
committerChris Lattner <sabre@nondot.org>2007-05-04 03:13:39 +0000
commitc97d08f70278a7fc9e86e1100e9bd56554468b4d (patch)
tree07f04a7e17b49046cbccaef20880a8d023d347b1
parenta68e3c7cf3b6e47473dcb2b1c5f5681e67408818 (diff)
downloadbcm5719-llvm-c97d08f70278a7fc9e86e1100e9bd56554468b4d.tar.gz
bcm5719-llvm-c97d08f70278a7fc9e86e1100e9bd56554468b4d.zip
add a helper
llvm-svn: 36729
-rw-r--r--llvm/include/llvm/ParameterAttributes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/ParameterAttributes.h b/llvm/include/llvm/ParameterAttributes.h
index 86287e0a3ba..35d347690da 100644
--- a/llvm/include/llvm/ParameterAttributes.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud