[llvm-commits] [llvm] r165889 - /llvm/trunk/include/llvm/Attributes.h

Bill Wendling isanbard at gmail.com
Sat Oct 13 20:28:43 PDT 2012


Author: void
Date: Sat Oct 13 22:28:43 2012
New Revision: 165889

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

Modified:
    llvm/trunk/include/llvm/Attributes.h

Modified: llvm/trunk/include/llvm/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Attributes.h?rev=165889&r1=165888&r2=165889&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Attributes.h (original)
+++ llvm/trunk/include/llvm/Attributes.h Sat Oct 13 22:28:43 2012
@@ -119,6 +119,9 @@
     Builder &removeAttribute(Attributes::AttrVal Val);
 
     void addAlignmentAttr(unsigned Align);
+
+    /// addStackAlignmentAttr - This turns an int stack alignment (which must be
+    /// a power of 2) into the form used internally in Attributes.
     void addStackAlignmentAttr(unsigned Align);
 
     void removeAttributes(const Attributes &A);
@@ -238,18 +241,6 @@
     return Attributes((Log2_32(i)+1) << 16);
   }
 
-  /// constructStackAlignmentFromInt - This turns an int stack alignment (which
-  /// must be a power of 2) into the form used internally in Attributes.
-  static Attributes constructStackAlignmentFromInt(unsigned i) {
-    // Default alignment, allow the target to define how to align it.
-    if (i == 0)
-      return Attributes();
-
-    assert(isPowerOf2_32(i) && "Alignment must be a power of two.");
-    assert(i <= 0x100 && "Alignment too large.");
-    return Attributes((Log2_32(i)+1) << 26);
-  }
-
   /// @brief Which attributes cannot be applied to a type.
   static Attributes typeIncompatible(Type *Ty);
 





More information about the llvm-commits mailing list