mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix -Wnon-virtual-dtor warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154063 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
56ce6b3520
commit
68f404d890
@ -149,6 +149,8 @@ protected:
|
|||||||
OwningPtr<Document> &Doc;
|
OwningPtr<Document> &Doc;
|
||||||
SMRange SourceRange;
|
SMRange SourceRange;
|
||||||
|
|
||||||
|
~Node();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
unsigned int TypeID;
|
unsigned int TypeID;
|
||||||
StringRef Anchor;
|
StringRef Anchor;
|
||||||
@ -166,6 +168,9 @@ public:
|
|||||||
static inline bool classof(const Node *N) {
|
static inline bool classof(const Node *N) {
|
||||||
return N->getType() == NK_Null;
|
return N->getType() == NK_Null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
~NullNode();
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @brief A scalar node is an opaque datum that can be presented as a
|
/// @brief A scalar node is an opaque datum that can be presented as a
|
||||||
@ -200,6 +205,9 @@ public:
|
|||||||
return N->getType() == NK_Scalar;
|
return N->getType() == NK_Scalar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
~ScalarNode();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
StringRef Value;
|
StringRef Value;
|
||||||
|
|
||||||
@ -247,6 +255,9 @@ public:
|
|||||||
return N->getType() == NK_KeyValue;
|
return N->getType() == NK_KeyValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
~KeyValueNode();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Node *Key;
|
Node *Key;
|
||||||
Node *Value;
|
Node *Value;
|
||||||
@ -363,6 +374,9 @@ public:
|
|||||||
return N->getType() == NK_Mapping;
|
return N->getType() == NK_Mapping;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
~MappingNode();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MappingType Type;
|
MappingType Type;
|
||||||
bool IsAtBeginning;
|
bool IsAtBeginning;
|
||||||
@ -426,6 +440,9 @@ public:
|
|||||||
return N->getType() == NK_Sequence;
|
return N->getType() == NK_Sequence;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
~SequenceNode();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SequenceType SeqType;
|
SequenceType SeqType;
|
||||||
bool IsAtBeginning;
|
bool IsAtBeginning;
|
||||||
@ -451,6 +468,9 @@ public:
|
|||||||
return N->getType() == NK_Alias;
|
return N->getType() == NK_Alias;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
~AliasNode();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
StringRef Name;
|
StringRef Name;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user