summaryrefslogtreecommitdiff
path: root/include/llvm/IR/Attributes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-28 01:30:29 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-28 01:30:29 +0000
commita9b9f0ad802ef6973534a9a247716e4a8e079635 (patch)
treed9c456ef8e47659c335b834912e94d2d69b486a8 /include/llvm/IR/Attributes.h
parente2501f56a620be88665d04dc481f40ef3275eea0 (diff)
downloadllvm-a9b9f0ad802ef6973534a9a247716e4a8e079635.tar.gz
llvm-a9b9f0ad802ef6973534a9a247716e4a8e079635.tar.bz2
llvm-a9b9f0ad802ef6973534a9a247716e4a8e079635.tar.xz
Use proper type for the index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/Attributes.h')
-rw-r--r--include/llvm/IR/Attributes.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 89a73d6182..2fce6ce953 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -214,7 +214,7 @@ private:
/// \brief The attributes for the specified index are returned. Attributes
/// for the result are denoted with Idx = 0.
- Attribute getAttributes(unsigned Idx) const;
+ Attribute getAttributes(uint64_t Idx) const;
/// \brief Add the specified attribute at the specified index to this
/// attribute list. Since attribute lists are immutable, this returns the new
@@ -297,25 +297,25 @@ public:
AttributeSet getFnAttributes() const;
/// \brief Return the alignment for the specified function parameter.
- unsigned getParamAlignment(unsigned Idx) const;
+ unsigned getParamAlignment(uint64_t Idx) const;
/// \brief Return true if the attribute exists at the given index.
- bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const;
+ bool hasAttribute(uint64_t Index, Attribute::AttrKind Kind) const;
/// \brief Return true if attribute exists at the given index.
- bool hasAttributes(unsigned Index) const;
+ bool hasAttributes(uint64_t Index) const;
/// \brief Returns the alignment field of an attribute as a byte alignment
/// value.
- unsigned getAlignment(unsigned Index) const;
+ unsigned getAlignment(uint64_t Index) const;
/// \brief Get the stack alignment.
- unsigned getStackAlignment(unsigned Index) const;
+ unsigned getStackAlignment(uint64_t Index) const;
/// \brief Return the attributes at the index as a string.
- std::string getAsString(unsigned Index) const;
+ std::string getAsString(uint64_t Index) const;
- uint64_t Raw(unsigned Index) const;
+ uint64_t Raw(uint64_t Index) const;
/// \brief Return true if the specified attribute is set for at least one
/// parameter or for the return value.