Remove unused methods and ivars.
authorBill Wendling <isanbard@gmail.com>
Wed, 23 Jan 2013 19:06:01 +0000 (19:06 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 23 Jan 2013 19:06:01 +0000 (19:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173284 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h

index 813718fdf771f69dc36acdfc48abc1b7d435147d..6ba9c4c55e0eb1def5627452c257f2926014adfc 100644 (file)
@@ -351,10 +351,7 @@ public:
 /// an index.
 struct AttributeWithIndex {
   Attribute Attrs;  ///< The attributes that are set, or'd together.
-  Constant *Val;    ///< Value attached to attribute, e.g. alignment.
   unsigned Index;   ///< Index of the parameter for which the attributes apply.
-                    ///< Index 0 is used for return value attributes.
-                    ///< Index ~0U is used for function attributes.
 
   // FIXME: These methods all need to be revised. The first one is temporary.
   static AttributeWithIndex get(LLVMContext &C, unsigned Idx, AttributeSet AS);
@@ -366,14 +363,6 @@ struct AttributeWithIndex {
     AttributeWithIndex P;
     P.Index = Idx;
     P.Attrs = Attrs;
-    P.Val = 0;
-    return P;
-  }
-  static AttributeWithIndex get(unsigned Idx, Attribute Attrs, Constant *Val) {
-    AttributeWithIndex P;
-    P.Index = Idx;
-    P.Attrs = Attrs;
-    P.Val = Val;
     return P;
   }
 };