Remove dead methods.

llvm-svn: 173302
This commit is contained in:
Bill Wendling 2013-01-23 22:38:33 +00:00
parent 5e306b1233
commit 9de4b973f1
3 changed files with 0 additions and 29 deletions

View File

@ -121,16 +121,10 @@ public:
/// value.
unsigned getAlignment() const;
/// \brief Set the alignment field of an attribute.
void setAlignment(unsigned Align);
/// \brief Returns the stack alignment field of an attribute as a byte
/// alignment value.
unsigned getStackAlignment() const;
/// \brief Set the stack alignment field of an attribute.
void setStackAlignment(unsigned Align);
/// \brief Equality and non-equality query methods.
bool operator==(AttrKind K) const;
bool operator!=(AttrKind K) const;

View File

@ -48,10 +48,7 @@ public:
bool hasAttributes() const;
uint64_t getAlignment() const;
void setAlignment(unsigned Align);
uint64_t getStackAlignment() const;
void setStackAlignment(unsigned Align);
bool operator==(Attribute::AttrKind Kind) const;
bool operator!=(Attribute::AttrKind Kind) const;

View File

@ -76,12 +76,6 @@ unsigned Attribute::getAlignment() const {
return 1U << ((pImpl->getAlignment() >> 16) - 1);
}
void Attribute::setAlignment(unsigned Align) {
assert(hasAttribute(Attribute::Alignment) &&
"Trying to set the alignment on a non-alignment attribute!");
pImpl->setAlignment(Align);
}
/// This returns the stack alignment field of an attribute as a byte alignment
/// value.
unsigned Attribute::getStackAlignment() const {
@ -90,12 +84,6 @@ unsigned Attribute::getStackAlignment() const {
return 1U << ((pImpl->getStackAlignment() >> 26) - 1);
}
void Attribute::setStackAlignment(unsigned Align) {
assert(hasAttribute(Attribute::StackAlignment) &&
"Trying to set the stack alignment on a non-alignment attribute!");
pImpl->setStackAlignment(Align);
}
bool Attribute::operator==(AttrKind K) const {
return pImpl && *pImpl == K;
}
@ -506,18 +494,10 @@ uint64_t AttributeImpl::getAlignment() const {
return Raw() & getAttrMask(Attribute::Alignment);
}
void AttributeImpl::setAlignment(unsigned Align) {
Vals.push_back(ConstantInt::get(Type::getInt64Ty(Context), Align));
}
uint64_t AttributeImpl::getStackAlignment() const {
return Raw() & getAttrMask(Attribute::StackAlignment);
}
void AttributeImpl::setStackAlignment(unsigned Align) {
Vals.push_back(ConstantInt::get(Type::getInt64Ty(Context), Align));
}
void AttributeImpl::Profile(FoldingSetNodeID &ID, Constant *Data,
ArrayRef<Constant*> Vals) {
ID.AddInteger(cast<ConstantInt>(Data)->getZExtValue());