[llvm-commits] [llvm] r165902 - in /llvm/trunk: include/llvm/Attributes.h include/llvm/AttributesImpl.h lib/VMCore/Attributes.cpp

Bill Wendling isanbard at gmail.com
Sun Oct 14 02:21:44 PDT 2012


Author: void
Date: Sun Oct 14 04:21:44 2012
New Revision: 165902

URL: http://llvm.org/viewvc/llvm-project?rev=165902&view=rev
Log:
Remove dead methods.

Modified:
    llvm/trunk/include/llvm/Attributes.h
    llvm/trunk/include/llvm/AttributesImpl.h
    llvm/trunk/lib/VMCore/Attributes.cpp

Modified: llvm/trunk/include/llvm/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Attributes.h?rev=165902&r1=165901&r2=165902&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Attributes.h (original)
+++ llvm/trunk/include/llvm/Attributes.h Sun Oct 14 04:21:44 2012
@@ -224,9 +224,6 @@
       hasAttribute(Attributes::AddressSafety);
   }
 
-  bool isEmptyOrSingleton() const;
-
-  // This is a "safe bool() operator".
   bool operator == (const Attributes &A) const {
     return Attrs.Bits == A.Attrs.Bits;
   }

Modified: llvm/trunk/include/llvm/AttributesImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/AttributesImpl.h?rev=165902&r1=165901&r2=165902&view=diff
==============================================================================
--- llvm/trunk/include/llvm/AttributesImpl.h (original)
+++ llvm/trunk/include/llvm/AttributesImpl.h Sun Oct 14 04:21:44 2012
@@ -36,8 +36,6 @@
   uint64_t getAlignment() const;
   uint64_t getStackAlignment() const;
 
-  bool isEmptyOrSingleton() const;
-
   static uint64_t getAttrMask(uint64_t Val);
 
   void Profile(FoldingSetNodeID &ID) const {

Modified: llvm/trunk/lib/VMCore/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Attributes.cpp?rev=165902&r1=165901&r2=165902&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Attributes.cpp (original)
+++ llvm/trunk/lib/VMCore/Attributes.cpp Sun Oct 14 04:21:44 2012
@@ -89,10 +89,6 @@
   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 @@
   return Bits & getAttrMask(Attributes::StackAlignment);
 }
 
-bool AttributesImpl::isEmptyOrSingleton() const {
-  return (Bits & (Bits - 1)) == 0;
-}
-
 //===----------------------------------------------------------------------===//
 // AttributeListImpl Definition
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list