diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-28 01:30:29 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-28 01:30:29 +0000 |
commit | 63ab99829a173327d7a4913426b46e12a041726d (patch) | |
tree | 8469feb0025ce08521f7fcfc8ad612fa332e336a /llvm/lib/IR/Attributes.cpp | |
parent | cc7e882701dfd06e638ec971aa01fd5eb81fd1e6 (diff) | |
download | bcm5719-llvm-63ab99829a173327d7a4913426b46e12a041726d.tar.gz bcm5719-llvm-63ab99829a173327d7a4913426b46e12a041726d.zip |
Use proper type for the index.
llvm-svn: 173646
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 67454864882..544c3cf16df 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -710,27 +710,27 @@ AttributeSet AttributeSet::getSlotAttributes(unsigned Slot) const { return pImpl->getSlotAttributes(Slot); } -bool AttributeSet::hasAttribute(unsigned Index, Attribute::AttrKind Kind) const{ +bool AttributeSet::hasAttribute(uint64_t Index, Attribute::AttrKind Kind) const{ return getAttributes(Index).hasAttribute(Kind); } -bool AttributeSet::hasAttributes(unsigned Index) const { +bool AttributeSet::hasAttributes(uint64_t Index) const { return getAttributes(Index).hasAttributes(); } -std::string AttributeSet::getAsString(unsigned Index) const { +std::string AttributeSet::getAsString(uint64_t Index) const { return getAttributes(Index).getAsString(); } -unsigned AttributeSet::getParamAlignment(unsigned Idx) const { +unsigned AttributeSet::getParamAlignment(uint64_t Idx) const { return getAttributes(Idx).getAlignment(); } -unsigned AttributeSet::getStackAlignment(unsigned Index) const { +unsigned AttributeSet::getStackAlignment(uint64_t Index) const { return getAttributes(Index).getStackAlignment(); } -uint64_t AttributeSet::Raw(unsigned Index) const { +uint64_t AttributeSet::Raw(uint64_t Index) const { // FIXME: Remove this. return pImpl ? pImpl->Raw(Index) : 0; } @@ -738,7 +738,7 @@ uint64_t AttributeSet::Raw(unsigned Index) const { /// \brief The attributes for the specified index are returned. /// /// FIXME: This shouldn't return 'Attribute'. -Attribute AttributeSet::getAttributes(unsigned Idx) const { +Attribute AttributeSet::getAttributes(uint64_t Idx) const { if (pImpl == 0) return Attribute(); // Loop through to find the attribute we want. |