[llvm-commits] [llvm] r173607 - Hide the method that creates an AttributeSet with AttributeWithIndexes.

Bill Wendling isanbard at gmail.com
Sat Jan 26 19:35:33 PST 2013


Author: void
Date: Sat Jan 26 21:35:32 2013
New Revision: 173607

URL: http://llvm.org/viewvc/llvm-project?rev=173607&view=rev
Log:
Hide the method that creates an AttributeSet with AttributeWithIndexes.

This method will go away once AttributeWithIndex goes away. In the meantime,
hide it from general use.

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=173607&r1=173606&r2=173607&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Sat Jan 26 21:35:32 2013
@@ -191,6 +191,7 @@ public:
   };
 private:
   friend class AttrBuilder;
+  friend class AttributeSetImpl;
 
   /// \brief The attributes that we are managing.  This can be null to represent
   /// the empty attributes list.
@@ -210,6 +211,10 @@ private:
   /// list.
   AttributeSet removeAttr(LLVMContext &C, unsigned Idx, Attribute Attrs) const;
 
+  /// \brief Create an AttributeSet from the AttributeWithIndex structures.
+  /// N.B. this is only temporary. It will be disappearing in the future.
+  static AttributeSet get(LLVMContext &C, ArrayRef<AttributeWithIndex> Attrs);
+
   explicit AttributeSet(AttributeSetImpl *LI) : AttrList(LI) {}
 public:
   AttributeSet() : AttrList(0) {}
@@ -221,7 +226,6 @@ public:
   //===--------------------------------------------------------------------===//
 
   /// \brief Return an AttributeSet with the specified parameters in it.
-  static AttributeSet get(LLVMContext &C, ArrayRef<AttributeWithIndex> Attrs);
   static AttributeSet get(LLVMContext &C, ArrayRef<AttributeSet> Attrs);
   static AttributeSet get(LLVMContext &C, unsigned Idx,
                           ArrayRef<Attribute::AttrKind> Kind);





More information about the llvm-commits mailing list