[llvm-commits] [llvm] r173284 - /llvm/trunk/include/llvm/IR/Attributes.h

Bill Wendling isanbard at gmail.com
Wed Jan 23 11:06:01 PST 2013


Author: void
Date: Wed Jan 23 13:06:01 2013
New Revision: 173284

URL: http://llvm.org/viewvc/llvm-project?rev=173284&view=rev
Log:
Remove unused methods and ivars.

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

Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=173284&r1=173283&r2=173284&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Wed Jan 23 13:06:01 2013
@@ -351,10 +351,7 @@
 /// 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 @@
     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;
   }
 };





More information about the llvm-commits mailing list