diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Attributes.h | 3 | ||||
-rw-r--r-- | include/llvm/Instructions.h | 10 |
2 files changed, 2 insertions, 11 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index 08063c15ed..caba9633eb 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -358,9 +358,6 @@ public: /// parameter or for the return value. bool hasAttrSomewhere(Attribute::AttrKind Attr) const; - unsigned getNumAttrs() const; - Attribute &getAttributesAtIndex(unsigned i) const; - /// operator==/!= - Provide equality predicates. bool operator==(const AttributeSet &RHS) const { return AttrList == RHS.AttrList; diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index e5faf6e209..a2f3125f9e 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -1352,10 +1352,7 @@ public: /// \brief Determine if any call argument is an aggregate passed by value. bool hasByValArgument() const { - for (unsigned I = 0, E = AttributeList.getNumAttrs(); I != E; ++I) - if (AttributeList.getAttributesAtIndex(I).hasAttribute(Attribute::ByVal)) - return true; - return false; + return AttributeList.hasAttrSomewhere(Attribute::ByVal); } /// getCalledFunction - Return the function called, or null if this is an @@ -3092,10 +3089,7 @@ public: /// \brief Determine if any call argument is an aggregate passed by value. bool hasByValArgument() const { - for (unsigned I = 0, E = AttributeList.getNumAttrs(); I != E; ++I) - if (AttributeList.getAttributesAtIndex(I).hasAttribute(Attribute::ByVal)) - return true; - return false; + return AttributeList.hasAttrSomewhere(Attribute::ByVal); } /// getCalledFunction - Return the function called, or null if this is an |