summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-22 16:29:35 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-22 16:29:35 +0000
commitd1906a945d260cbe4d19759bacd2f36ac77e7b5f (patch)
tree316b955d1ef5e5717080310f6e3c7d645dc3b852
parent7368a611fbb7be6679822d71481804fad6aa4f5a (diff)
downloadbcm5719-llvm-d1906a945d260cbe4d19759bacd2f36ac77e7b5f.tar.gz
bcm5719-llvm-d1906a945d260cbe4d19759bacd2f36ac77e7b5f.zip
Terminate file with newline.
llvm-svn: 36343
-rw-r--r--llvm/include/llvm/ParameterAttributes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/ParameterAttributes.h b/llvm/include/llvm/ParameterAttributes.h
index 4c4b0c75821..87311c8de8b 100644
--- a/llvm/include/llvm/ParameterAttributes.h
+++ b/llvm/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() {} // Not public!
+ ~ParamAttrsList();
/// @brief Construct an ParamAttrsList from a ParamAttrsVector
explicit ParamAttrsList(const ParamAttrsVector &attrVec) : attrs(attrVec) {}
@@ -162,12 +162,15 @@ 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
/// @}
};
OpenPOWER on IntegriCloud