diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-23 22:38:33 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-23 22:38:33 +0000 |
commit | 9de4b973f15e736b52605fc336bd448342b9b743 (patch) | |
tree | ca3c0179127708673166672ca29b07ab66a3a9b5 /llvm/lib/IR/Attributes.cpp | |
parent | 5e306b1233ac2281afa353c37797fd258abcd13a (diff) | |
download | bcm5719-llvm-9de4b973f15e736b52605fc336bd448342b9b743.tar.gz bcm5719-llvm-9de4b973f15e736b52605fc336bd448342b9b743.zip |
Remove dead methods.
llvm-svn: 173302
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 964a404bffc..37cd3fbb911 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -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()); |