From 5e886278ba05e7b1bcfbb215f6bfa4c47120634e Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 22 Apr 2007 16:30:47 +0000 Subject: [PATCH] Undo premature commit. llvm-svn: 36344 --- include/llvm/ParameterAttributes.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h index 87311c8de8b..4c4b0c75821 100644 --- a/include/llvm/ParameterAttributes.h +++ b/include/llvm/ParameterAttributes.h @@ -70,7 +70,7 @@ class ParamAttrsList : public FoldingSetNode { void operator=(const ParamAttrsList &); // Do not implement ParamAttrsList(const ParamAttrsList &); // Do not implement ParamAttrsList(); // Do not implement - ~ParamAttrsList(); + ~ParamAttrsList() {} // Not public! /// @brief Construct an ParamAttrsList from a ParamAttrsVector explicit ParamAttrsList(const ParamAttrsVector &attrVec) : attrs(attrVec) {} @@ -162,15 +162,12 @@ class ParamAttrsList : public FoldingSetNode { public: void Profile(FoldingSetNodeID &ID) const; void dump() const; - void addRef() const { refCount++; } - void dropRef() const { if (--refCount == 0) delete this; } /// @} /// @name Data /// @{ private: ParamAttrsVector attrs; ///< The list of attributes - mutable unsigned refCount; ///< The number of references to this object /// @} };