Skip to content

Commit

Permalink
Remove dead methods.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165902 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
isanbard committed Oct 14, 2012
1 parent 7be7848 commit e82a040
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions include/llvm/Attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ class Attributes {
hasAttribute(Attributes::AddressSafety);
}

bool isEmptyOrSingleton() const;

// This is a "safe bool() operator".
bool operator == (const Attributes &A) const {
return Attrs.Bits == A.Attrs.Bits;
}
Expand Down
2 changes: 0 additions & 2 deletions include/llvm/AttributesImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class AttributesImpl : public FoldingSetNode {
uint64_t getAlignment() const;
uint64_t getStackAlignment() const;

bool isEmptyOrSingleton() const;

static uint64_t getAttrMask(uint64_t Val);

void Profile(FoldingSetNodeID &ID) const {
Expand Down
8 changes: 0 additions & 8 deletions lib/VMCore/Attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ unsigned Attributes::getStackAlignment() const {
return 1U << ((Attrs.getStackAlignment() >> 26) - 1);
}

bool Attributes::isEmptyOrSingleton() const {
return Attrs.isEmptyOrSingleton();
}

uint64_t Attributes::Raw() const {
return Attrs.Bits;
}
Expand Down Expand Up @@ -317,10 +313,6 @@ uint64_t AttributesImpl::getStackAlignment() const {
return Bits & getAttrMask(Attributes::StackAlignment);
}

bool AttributesImpl::isEmptyOrSingleton() const {
return (Bits & (Bits - 1)) == 0;
}

//===----------------------------------------------------------------------===//
// AttributeListImpl Definition
//===----------------------------------------------------------------------===//
Expand Down

0 comments on commit e82a040

Please sign in to comment.