summaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-23 22:38:33 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-23 22:38:33 +0000
commit2915a691b9eecde508948d4300428860d1655175 (patch)
treef752e7d1fb48572c1ff85f94b74b14e5f1aafd23 /lib/IR
parent98202c09745d6dfe0ef4ed19c0647e078e74f09f (diff)
downloadllvm-2915a691b9eecde508948d4300428860d1655175.tar.gz
llvm-2915a691b9eecde508948d4300428860d1655175.tar.bz2
llvm-2915a691b9eecde508948d4300428860d1655175.tar.xz
Remove dead methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/AttributeImpl.h3
-rw-r--r--lib/IR/Attributes.cpp20
2 files changed, 0 insertions, 23 deletions
diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h
index b5d292ee27..0843fd8ac8 100644
--- a/lib/IR/AttributeImpl.h
+++ b/lib/IR/AttributeImpl.h
@@ -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;
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index 964a404bff..37cd3fbb91 100644
--- a/lib/IR/Attributes.cpp
+++ b/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());