From e82a040ee04e7340f3fc9a1d55213ed19167ba72 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 14 Oct 2012 09:21:44 +0000 Subject: [PATCH] Remove dead methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165902 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Attributes.h | 3 --- include/llvm/AttributesImpl.h | 2 -- lib/VMCore/Attributes.cpp | 8 -------- 3 files changed, 13 deletions(-) diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index d3d11777283..a69667b047e 100644 --- a/include/llvm/Attributes.h +++ b/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/include/llvm/AttributesImpl.h b/include/llvm/AttributesImpl.h index eea11a7011a..93001e279f5 100644 --- a/include/llvm/AttributesImpl.h +++ b/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/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index f9957d65348..15890f92b3f 100644 --- a/lib/VMCore/Attributes.cpp +++ b/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 //===----------------------------------------------------------------------===// -- 2.34.1