summaryrefslogtreecommitdiff
path: root/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-28 04:29:01 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-28 04:29:01 +0000
commit53ff78b2019e96e142986d19dd99f8dd563dc494 (patch)
tree44341e9223446cb5b3e933e42a5fb3cb769bafc1 /lib/IR/Attributes.cpp
parent3c67f1cd94760f879e0ec5407f0d1078bc51f9b4 (diff)
downloadllvm-53ff78b2019e96e142986d19dd99f8dd563dc494.tar.gz
llvm-53ff78b2019e96e142986d19dd99f8dd563dc494.tar.bz2
llvm-53ff78b2019e96e142986d19dd99f8dd563dc494.tar.xz
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 'lib/IR/Attributes.cpp')
-rw-r--r--lib/IR/Attributes.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index 544c3cf16d..6745486488 100644
--- a/lib/IR/Attributes.cpp
+++ b/lib/IR/Attributes.cpp
@@ -710,27 +710,27 @@ AttributeSet AttributeSet::getSlotAttributes(unsigned Slot) const {
return pImpl->getSlotAttributes(Slot);
}
-bool AttributeSet::hasAttribute(uint64_t Index, Attribute::AttrKind Kind) const{
+bool AttributeSet::hasAttribute(unsigned Index, Attribute::AttrKind Kind) const{
return getAttributes(Index).hasAttribute(Kind);
}
-bool AttributeSet::hasAttributes(uint64_t Index) const {
+bool AttributeSet::hasAttributes(unsigned Index) const {
return getAttributes(Index).hasAttributes();
}
-std::string AttributeSet::getAsString(uint64_t Index) const {
+std::string AttributeSet::getAsString(unsigned Index) const {
return getAttributes(Index).getAsString();
}
-unsigned AttributeSet::getParamAlignment(uint64_t Idx) const {
+unsigned AttributeSet::getParamAlignment(unsigned Idx) const {
return getAttributes(Idx).getAlignment();
}
-unsigned AttributeSet::getStackAlignment(uint64_t Index) const {
+unsigned AttributeSet::getStackAlignment(unsigned Index) const {
return getAttributes(Index).getStackAlignment();
}
-uint64_t AttributeSet::Raw(uint64_t Index) const {
+uint64_t AttributeSet::Raw(unsigned Index) const {
// FIXME: Remove this.
return pImpl ? pImpl->Raw(Index) : 0;
}
@@ -738,7 +738,7 @@ uint64_t AttributeSet::Raw(uint64_t Index) const {
/// \brief The attributes for the specified index are returned.
///
/// FIXME: This shouldn't return 'Attribute'.
-Attribute AttributeSet::getAttributes(uint64_t Idx) const {
+Attribute AttributeSet::getAttributes(unsigned Idx) const {
if (pImpl == 0) return Attribute();
// Loop through to find the attribute we want.