summaryrefslogtreecommitdiff
path: root/lib/VMCore/Attributes.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-24 00:29:49 +0000
committerDevang Patel <dpatel@apple.com>2008-09-24 00:29:49 +0000
commit1e480009662c4ec56e16fc5b44fb9affef98bcbc (patch)
treeb4f6198f95c60a428292623224ec4941d572b728 /lib/VMCore/Attributes.cpp
parent3d84a76917c4bb1e4d5b99009a7fb32970fb20b8 (diff)
downloadllvm-1e480009662c4ec56e16fc5b44fb9affef98bcbc.tar.gz
llvm-1e480009662c4ec56e16fc5b44fb9affef98bcbc.tar.bz2
llvm-1e480009662c4ec56e16fc5b44fb9affef98bcbc.tar.xz
s/ParamAttributeListImpl/AttributeListImpl/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Attributes.cpp')
-rw-r--r--lib/VMCore/Attributes.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index db98f558f4..ff532642ab 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/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();
}