diff options
| author | Devang Patel <dpatel@apple.com> | 2008-09-24 00:29:49 +0000 | 
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-09-24 00:29:49 +0000 | 
| commit | 0009505a251c5c96ab1a344dfefb5bb4af600a9f (patch) | |
| tree | bd676adbc56b382c159db3d3b0af9facbdbab4be /llvm | |
| parent | 6b33aa4d9610cbbee7aa4122fc015fa843aa7ee6 (diff) | |
| download | bcm5719-llvm-0009505a251c5c96ab1a344dfefb5bb4af600a9f.tar.gz bcm5719-llvm-0009505a251c5c96ab1a344dfefb5bb4af600a9f.zip  | |
s/ParamAttributeListImpl/AttributeListImpl/g
llvm-svn: 56532
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Attributes.h | 8 | ||||
| -rw-r--r-- | llvm/lib/VMCore/Attributes.cpp | 24 | 
2 files changed, 16 insertions, 16 deletions
diff --git a/llvm/include/llvm/Attributes.h b/llvm/include/llvm/Attributes.h index 0e416944694..7e464baf099 100644 --- a/llvm/include/llvm/Attributes.h +++ b/llvm/include/llvm/Attributes.h @@ -105,14 +105,14 @@ struct ParamAttrsWithIndex {  // PAListPtr Smart Pointer  //===----------------------------------------------------------------------===// -class ParamAttributeListImpl; +class AttributeListImpl;  /// PAListPtr - This class manages the ref count for the opaque  -/// ParamAttributeListImpl object and provides accessors for it. +/// AttributeListImpl object and provides accessors for it.  class PAListPtr {    /// PAList - The parameter attributes that we are managing.  This can be null    /// to represent the empty parameter attributes list. -  ParamAttributeListImpl *PAList; +  AttributeListImpl *PAList;  public:    PAListPtr() : PAList(0) {}    PAListPtr(const PAListPtr &P); @@ -204,7 +204,7 @@ public:    const ParamAttrsWithIndex &getSlot(unsigned Slot) const;  private: -  explicit PAListPtr(ParamAttributeListImpl *L); +  explicit PAListPtr(AttributeListImpl *L);  };  } // End llvm namespace diff --git a/llvm/lib/VMCore/Attributes.cpp b/llvm/lib/VMCore/Attributes.cpp index db98f558f40..ff532642ab7 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/lib/VMCore/Attributes.cpp @@ -72,21 +72,21 @@ Attributes ParamAttr::typeIncompatible(const Type *Ty) {  }  //===----------------------------------------------------------------------===// -// ParamAttributeListImpl Definition +// AttributeListImpl Definition  //===----------------------------------------------------------------------===//  namespace llvm { -class ParamAttributeListImpl : public FoldingSetNode { +class AttributeListImpl : public FoldingSetNode {    unsigned RefCount;    // ParamAttrsList is uniqued, these should not be publicly available. -  void operator=(const ParamAttributeListImpl &); // Do not implement -  ParamAttributeListImpl(const ParamAttributeListImpl &); // Do not implement -  ~ParamAttributeListImpl();                        // Private implementation +  void operator=(const AttributeListImpl &); // Do not implement +  AttributeListImpl(const AttributeListImpl &); // Do not implement +  ~AttributeListImpl();                        // Private implementation  public:    SmallVector<ParamAttrsWithIndex, 4> Attrs; -  ParamAttributeListImpl(const ParamAttrsWithIndex *Attr, unsigned NumAttrs) +  AttributeListImpl(const ParamAttrsWithIndex *Attr, unsigned NumAttrs)      : Attrs(Attr, Attr+NumAttrs) {      RefCount = 0;    } @@ -105,9 +105,9 @@ public:  };  } -static ManagedStatic<FoldingSet<ParamAttributeListImpl> > ParamAttrsLists; +static ManagedStatic<FoldingSet<AttributeListImpl> > ParamAttrsLists; -ParamAttributeListImpl::~ParamAttributeListImpl() { +AttributeListImpl::~AttributeListImpl() {    ParamAttrsLists->RemoveNode(this);  } @@ -128,15 +128,15 @@ PAListPtr PAListPtr::get(const ParamAttrsWithIndex *Attrs, unsigned NumAttrs) {    // Otherwise, build a key to look up the existing attributes.    FoldingSetNodeID ID; -  ParamAttributeListImpl::Profile(ID, Attrs, NumAttrs); +  AttributeListImpl::Profile(ID, Attrs, NumAttrs);    void *InsertPos; -  ParamAttributeListImpl *PAL = +  AttributeListImpl *PAL =      ParamAttrsLists->FindNodeOrInsertPos(ID, InsertPos);    // If we didn't find any existing attributes of the same shape then    // create a new one and insert it.    if (!PAL) { -    PAL = new ParamAttributeListImpl(Attrs, NumAttrs); +    PAL = new AttributeListImpl(Attrs, NumAttrs);      ParamAttrsLists->InsertNode(PAL, InsertPos);    } @@ -149,7 +149,7 @@ PAListPtr PAListPtr::get(const ParamAttrsWithIndex *Attrs, unsigned NumAttrs) {  // PAListPtr Method Implementations  //===----------------------------------------------------------------------===// -PAListPtr::PAListPtr(ParamAttributeListImpl *LI) : PAList(LI) { +PAListPtr::PAListPtr(AttributeListImpl *LI) : PAList(LI) {    if (LI) LI->AddRef();  }  | 

