mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Terminate file with newline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -70,7 +70,7 @@ class ParamAttrsList : public FoldingSetNode {
|
|||||||
void operator=(const ParamAttrsList &); // Do not implement
|
void operator=(const ParamAttrsList &); // Do not implement
|
||||||
ParamAttrsList(const ParamAttrsList &); // Do not implement
|
ParamAttrsList(const ParamAttrsList &); // Do not implement
|
||||||
ParamAttrsList(); // Do not implement
|
ParamAttrsList(); // Do not implement
|
||||||
~ParamAttrsList() {} // Not public!
|
~ParamAttrsList();
|
||||||
|
|
||||||
/// @brief Construct an ParamAttrsList from a ParamAttrsVector
|
/// @brief Construct an ParamAttrsList from a ParamAttrsVector
|
||||||
explicit ParamAttrsList(const ParamAttrsVector &attrVec) : attrs(attrVec) {}
|
explicit ParamAttrsList(const ParamAttrsVector &attrVec) : attrs(attrVec) {}
|
||||||
@@ -162,12 +162,15 @@ class ParamAttrsList : public FoldingSetNode {
|
|||||||
public:
|
public:
|
||||||
void Profile(FoldingSetNodeID &ID) const;
|
void Profile(FoldingSetNodeID &ID) const;
|
||||||
void dump() const;
|
void dump() const;
|
||||||
|
void addRef() const { refCount++; }
|
||||||
|
void dropRef() const { if (--refCount == 0) delete this; }
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Data
|
/// @name Data
|
||||||
/// @{
|
/// @{
|
||||||
private:
|
private:
|
||||||
ParamAttrsVector attrs; ///< The list of attributes
|
ParamAttrsVector attrs; ///< The list of attributes
|
||||||
|
mutable unsigned refCount; ///< The number of references to this object
|
||||||
/// @}
|
/// @}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user