Remove dead methods.
authorBill Wendling <isanbard@gmail.com>
Sun, 14 Oct 2012 09:21:44 +0000 (09:21 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 14 Oct 2012 09:21:44 +0000 (09:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165902 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Attributes.h
include/llvm/AttributesImpl.h
lib/VMCore/Attributes.cpp

index d3d117772831bd9942fdd3ce311110768179c629..a69667b047ecd1c30c33456180fa6c3baed6ae46 100644 (file)
@@ -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;
   }
index eea11a7011a4f4acc5c254398d6768968cc38ceb..93001e279f5a75d6bb5e7729bc153722536bd152 100644 (file)
@@ -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 {
index f9957d65348b626d06dbbdf81576a02bc0e6c0ad..15890f92b3fc46060f0b4b8e06bc20afa27c298c 100644 (file)
@@ -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
 //===----------------------------------------------------------------------===//