aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ParameterAttributes.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-08 22:05:44 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-08 22:05:44 +0000
commit0697ca0b138345389360367f578bbaf6ac28f8ee (patch)
tree7ec3ca1be5bfa532f720cceab2b4b85591770afe /include/llvm/ParameterAttributes.h
parent27dcbe5f87568f62e8063f196c4950343813a8f7 (diff)
downloadexternal_llvm-0697ca0b138345389360367f578bbaf6ac28f8ee.zip
external_llvm-0697ca0b138345389360367f578bbaf6ac28f8ee.tar.gz
external_llvm-0697ca0b138345389360367f578bbaf6ac28f8ee.tar.bz2
Implement review feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ParameterAttributes.h')
-rw-r--r--include/llvm/ParameterAttributes.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h
index 226438c..7ef2c42 100644
--- a/include/llvm/ParameterAttributes.h
+++ b/include/llvm/ParameterAttributes.h
@@ -17,7 +17,7 @@
#ifndef LLVM_PARAMETER_ATTRIBUTES_H
#define LLVM_PARAMETER_ATTRIBUTES_H
-#include <llvm/ADT/SmallVector.h>
+#include "llvm/ADT/SmallVector.h"
namespace llvm {
@@ -121,11 +121,10 @@ class ParamAttrsList {
/// @{
public:
/// This adds a pair to the list of parameter index and attribute pairs
- /// represented by this class. No check is made to determine whether
- /// param_index exists already. This pair is just added to the end. It is
- /// the user's responsibility to insert the pairs wisely.
+ /// represented by this class. If the parameter index already exists then
+ /// its attributes are overwritten. Otherwise it is added to the list.
/// @brief Insert ParameterAttributes for an index
- void insert(uint16_t param_index, uint16_t attrs);
+ void setAttributes(uint16_t param_index, uint16_t attrs);
/// @}
/// @name Data