s/ParamAttributeListImpl/AttributeListImpl/g

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56532 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-09-24 00:29:49 +00:00
parent 3d84a76917
commit 1e48000966
2 changed files with 16 additions and 16 deletions

View File

@ -105,14 +105,14 @@ struct ParamAttrsWithIndex {
// PAListPtr Smart Pointer // PAListPtr Smart Pointer
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
class ParamAttributeListImpl; class AttributeListImpl;
/// PAListPtr - This class manages the ref count for the opaque /// 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 { class PAListPtr {
/// PAList - The parameter attributes that we are managing. This can be null /// PAList - The parameter attributes that we are managing. This can be null
/// to represent the empty parameter attributes list. /// to represent the empty parameter attributes list.
ParamAttributeListImpl *PAList; AttributeListImpl *PAList;
public: public:
PAListPtr() : PAList(0) {} PAListPtr() : PAList(0) {}
PAListPtr(const PAListPtr &P); PAListPtr(const PAListPtr &P);
@ -204,7 +204,7 @@ public:
const ParamAttrsWithIndex &getSlot(unsigned Slot) const; const ParamAttrsWithIndex &getSlot(unsigned Slot) const;
private: private:
explicit PAListPtr(ParamAttributeListImpl *L); explicit PAListPtr(AttributeListImpl *L);
}; };
} // End llvm namespace } // End llvm namespace

View File

@ -72,21 +72,21 @@ Attributes ParamAttr::typeIncompatible(const Type *Ty) {
} }
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// ParamAttributeListImpl Definition // AttributeListImpl Definition
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
namespace llvm { namespace llvm {
class ParamAttributeListImpl : public FoldingSetNode { class AttributeListImpl : public FoldingSetNode {
unsigned RefCount; unsigned RefCount;
// ParamAttrsList is uniqued, these should not be publicly available. // ParamAttrsList is uniqued, these should not be publicly available.
void operator=(const ParamAttributeListImpl &); // Do not implement void operator=(const AttributeListImpl &); // Do not implement
ParamAttributeListImpl(const ParamAttributeListImpl &); // Do not implement AttributeListImpl(const AttributeListImpl &); // Do not implement
~ParamAttributeListImpl(); // Private implementation ~AttributeListImpl(); // Private implementation
public: public:
SmallVector<ParamAttrsWithIndex, 4> Attrs; SmallVector<ParamAttrsWithIndex, 4> Attrs;
ParamAttributeListImpl(const ParamAttrsWithIndex *Attr, unsigned NumAttrs) AttributeListImpl(const ParamAttrsWithIndex *Attr, unsigned NumAttrs)
: Attrs(Attr, Attr+NumAttrs) { : Attrs(Attr, Attr+NumAttrs) {
RefCount = 0; RefCount = 0;
} }
@ -105,9 +105,9 @@ public:
}; };
} }
static ManagedStatic<FoldingSet<ParamAttributeListImpl> > ParamAttrsLists; static ManagedStatic<FoldingSet<AttributeListImpl> > ParamAttrsLists;
ParamAttributeListImpl::~ParamAttributeListImpl() { AttributeListImpl::~AttributeListImpl() {
ParamAttrsLists->RemoveNode(this); 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. // Otherwise, build a key to look up the existing attributes.
FoldingSetNodeID ID; FoldingSetNodeID ID;
ParamAttributeListImpl::Profile(ID, Attrs, NumAttrs); AttributeListImpl::Profile(ID, Attrs, NumAttrs);
void *InsertPos; void *InsertPos;
ParamAttributeListImpl *PAL = AttributeListImpl *PAL =
ParamAttrsLists->FindNodeOrInsertPos(ID, InsertPos); ParamAttrsLists->FindNodeOrInsertPos(ID, InsertPos);
// If we didn't find any existing attributes of the same shape then // If we didn't find any existing attributes of the same shape then
// create a new one and insert it. // create a new one and insert it.
if (!PAL) { if (!PAL) {
PAL = new ParamAttributeListImpl(Attrs, NumAttrs); PAL = new AttributeListImpl(Attrs, NumAttrs);
ParamAttrsLists->InsertNode(PAL, InsertPos); ParamAttrsLists->InsertNode(PAL, InsertPos);
} }
@ -149,7 +149,7 @@ PAListPtr PAListPtr::get(const ParamAttrsWithIndex *Attrs, unsigned NumAttrs) {
// PAListPtr Method Implementations // PAListPtr Method Implementations
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
PAListPtr::PAListPtr(ParamAttributeListImpl *LI) : PAList(LI) { PAListPtr::PAListPtr(AttributeListImpl *LI) : PAList(LI) {
if (LI) LI->AddRef(); if (LI) LI->AddRef();
} }