From: Reid Spencer Date: Sun, 8 Apr 2007 22:05:44 +0000 (+0000) Subject: Implement review feedback. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0697ca0b138345389360367f578bbaf6ac28f8ee;p=oota-llvm.git Implement review feedback. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35777 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h index 226438c92f9..7ef2c42c245 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 +#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