aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-14 03:28:43 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-14 03:28:43 +0000
commitdb55fc9dd8f6ede9b5337ba1f1d7cf0adfb1cc1a (patch)
tree5e740f58d3eb416f80cd9001f665108f8e7df1a9
parent9209805690b0cb2ec47cf682747e2a3b9408ebb4 (diff)
Remove dead method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165889 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Attributes.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h
index e0b6a507bc..c757951a1f 100644
--- a/include/llvm/Attributes.h
+++ b/include/llvm/Attributes.h
@@ -119,6 +119,9 @@ public:
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 @@ public:
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);