llvm.org GIT mirror llvm / 19d815c
Mid-air collision. reapply r173656. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173661 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
2 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
286286 AttributeSet getFnAttributes() const;
287287
288288 /// \brief Return true if the attribute exists at the given index.
289 bool hasAttribute(uint64_t Index, Attribute::AttrKind Kind) const;
289 bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const;
290290
291291 /// \brief Return true if attribute exists at the given index.
292 bool hasAttributes(uint64_t Index) const;
292 bool hasAttributes(unsigned Index) const;
293293
294294 /// \brief Return the alignment for the specified function parameter.
295 unsigned getParamAlignment(uint64_t Idx) const;
295 unsigned getParamAlignment(unsigned Idx) const;
296296
297297 /// \brief Get the stack alignment.
298 unsigned getStackAlignment(uint64_t Index) const;
298 unsigned getStackAlignment(unsigned Index) const;
299299
300300 /// \brief Return the attributes at the index as a string.
301 std::string getAsString(uint64_t Index) const;
301 std::string getAsString(unsigned Index) const;
302302
303303 uint64_t Raw(unsigned Index) const;
304304
709709 return pImpl->getSlotAttributes(Slot);
710710 }
711711
712 bool AttributeSet::hasAttribute(uint64_t Index, Attribute::AttrKind Kind) const{
712 bool AttributeSet::hasAttribute(unsigned Index, Attribute::AttrKind Kind) const{
713713 return getAttributes(Index).hasAttribute(Kind);
714714 }
715715
716 bool AttributeSet::hasAttributes(uint64_t Index) const {
716 bool AttributeSet::hasAttributes(unsigned Index) const {
717717 return getAttributes(Index).hasAttributes();
718718 }
719719
720 std::string AttributeSet::getAsString(uint64_t Index) const {
720 std::string AttributeSet::getAsString(unsigned Index) const {
721721 return getAttributes(Index).getAsString();
722722 }
723723
724 unsigned AttributeSet::getParamAlignment(uint64_t Idx) const {
724 unsigned AttributeSet::getParamAlignment(unsigned Idx) const {
725725 return getAttributes(Idx).getAlignment();
726726 }
727727
728 unsigned AttributeSet::getStackAlignment(uint64_t Index) const {
728 unsigned AttributeSet::getStackAlignment(unsigned Index) const {
729729 return getAttributes(Index).getStackAlignment();
730730 }
731731