summaryrefslogtreecommitdiffstats
path: root/include/llvm/ParameterAttributes.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-13 04:33:03 +0000
committerChris Lattner <sabre@nondot.org>2008-03-13 04:33:03 +0000
commit041221c0972ff575b07f76808c504833d629ae1f (patch)
treef413ba84a11527b28bd0609ab30a40cc4a805b63 /include/llvm/ParameterAttributes.h
parent7520fcd7a5e4c17011588aab105dea9afa2ba3ec (diff)
downloadexternal_llvm-041221c0972ff575b07f76808c504833d629ae1f.zip
external_llvm-041221c0972ff575b07f76808c504833d629ae1f.tar.gz
external_llvm-041221c0972ff575b07f76808c504833d629ae1f.tar.bz2
Various improvements suggested by Duncan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ParameterAttributes.h')
-rw-r--r--include/llvm/ParameterAttributes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h
index 4a68a7d..5031d84 100644
--- a/include/llvm/ParameterAttributes.h
+++ b/include/llvm/ParameterAttributes.h
@@ -120,7 +120,7 @@ public:
static PAListPtr get(const ParamAttrsWithIndex *Attr, unsigned NumAttrs);
/// get - Return a ParamAttr list with the parameters specified by the
- /// consequtive random access iterator range.
+ /// consecutive random access iterator range.
template <typename Iter>
static PAListPtr get(const Iter &I, const Iter &E) {
if (I == E) return PAListPtr(); // Empty list.
@@ -161,7 +161,7 @@ public:
/// least one parameter or for the return value.
bool hasAttrSomewhere(ParameterAttributes Attr) const;
- /// operator< - Provide an ordering for parameter attribute lists.
+ /// operator==/!= - Provide equality predicates.
bool operator==(const PAListPtr &RHS) const { return PAList == RHS.PAList; }
bool operator!=(const PAListPtr &RHS) const { return PAList != RHS.PAList; }