[llvm-commits] CVS: llvm/include/llvm/ParameterAttributes.h
Reid Spencer
reid at x10sys.com
Sun Apr 22 09:31:05 PDT 2007
Changes in directory llvm/include/llvm:
ParameterAttributes.h updated: 1.9 -> 1.10
---
Log message:
Undo premature commit.
---
Diffs of the changes: (+1 -4)
ParameterAttributes.h | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)
Index: llvm/include/llvm/ParameterAttributes.h
diff -u llvm/include/llvm/ParameterAttributes.h:1.9 llvm/include/llvm/ParameterAttributes.h:1.10
--- llvm/include/llvm/ParameterAttributes.h:1.9 Sun Apr 22 11:29:35 2007
+++ llvm/include/llvm/ParameterAttributes.h Sun Apr 22 11:30:47 2007
@@ -70,7 +70,7 @@
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 @@
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
/// @}
};
More information about the llvm-commits
mailing list