aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-22 16:30:47 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-22 16:30:47 +0000
commit4244334fe9b9fec0777cbebc349f188dc8024334 (patch)
treeaf868d45035261f447de94ffeee42c9455090e88
parent0146c2e67bd3d00235d3cd5c686e8b773a2da7a8 (diff)
Undo premature commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36344 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ParameterAttributes.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h
index 87311c8de8..4c4b0c7582 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
/// @}
};