From: Bill Wendling Date: Sun, 14 Oct 2012 09:21:44 +0000 (+0000) Subject: Remove dead methods. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ae76a379c40f71f676a1204ab6a517219c27678;p=platform%2Fupstream%2Fllvm.git Remove dead methods. llvm-svn: 165902 --- diff --git a/llvm/include/llvm/Attributes.h b/llvm/include/llvm/Attributes.h index d3d1177..a69667b 100644 --- a/llvm/include/llvm/Attributes.h +++ b/llvm/include/llvm/Attributes.h @@ -224,9 +224,6 @@ public: hasAttribute(Attributes::AddressSafety); } - bool isEmptyOrSingleton() const; - - // This is a "safe bool() operator". bool operator == (const Attributes &A) const { return Attrs.Bits == A.Attrs.Bits; } diff --git a/llvm/include/llvm/AttributesImpl.h b/llvm/include/llvm/AttributesImpl.h index eea11a7..93001e2 100644 --- a/llvm/include/llvm/AttributesImpl.h +++ b/llvm/include/llvm/AttributesImpl.h @@ -36,8 +36,6 @@ public: uint64_t getAlignment() const; uint64_t getStackAlignment() const; - bool isEmptyOrSingleton() const; - static uint64_t getAttrMask(uint64_t Val); void Profile(FoldingSetNodeID &ID) const { diff --git a/llvm/lib/VMCore/Attributes.cpp b/llvm/lib/VMCore/Attributes.cpp index f9957d6..15890f9 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/lib/VMCore/Attributes.cpp @@ -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; } @@ -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 //===----------------------------------------------------------------------===//