diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-28 04:29:01 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-28 04:29:01 +0000 |
commit | 53ff78b2019e96e142986d19dd99f8dd563dc494 (patch) | |
tree | 44341e9223446cb5b3e933e42a5fb3cb769bafc1 /include | |
parent | 3c67f1cd94760f879e0ec5407f0d1078bc51f9b4 (diff) | |
download | external_llvm-53ff78b2019e96e142986d19dd99f8dd563dc494.zip external_llvm-53ff78b2019e96e142986d19dd99f8dd563dc494.tar.gz external_llvm-53ff78b2019e96e142986d19dd99f8dd563dc494.tar.bz2 |
Revert r173646, "Use proper type for the index."
Unfortunately, msvc miscompiles it. Investigating.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Attributes.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 2fce6ce..89a73d6 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(uint64_t Idx) const; + Attribute getAttributes(unsigned 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(uint64_t Idx) const; + unsigned getParamAlignment(unsigned Idx) const; /// \brief Return true if the attribute exists at the given index. - bool hasAttribute(uint64_t Index, Attribute::AttrKind Kind) const; + bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const; /// \brief Return true if attribute exists at the given index. - bool hasAttributes(uint64_t Index) const; + bool hasAttributes(unsigned Index) const; /// \brief Returns the alignment field of an attribute as a byte alignment /// value. - unsigned getAlignment(uint64_t Index) const; + unsigned getAlignment(unsigned Index) const; /// \brief Get the stack alignment. - unsigned getStackAlignment(uint64_t Index) const; + unsigned getStackAlignment(unsigned Index) const; /// \brief Return the attributes at the index as a string. - std::string getAsString(uint64_t Index) const; + std::string getAsString(unsigned Index) const; - uint64_t Raw(uint64_t Index) const; + uint64_t Raw(unsigned Index) const; /// \brief Return true if the specified attribute is set for at least one /// parameter or for the return value. |