aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-04-04 22:34:55 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-04-04 22:34:55 +0000
commit68f404d890cf5be94a7a818f4215bbff64598a45 (patch)
treec78be4fb7b482ad67133efa15d91ce2dca9eebd2 /include
parent56ce6b35209723cc453a6258a44f442d63be2b64 (diff)
Fix -Wnon-virtual-dtor warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/YAMLParser.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/llvm/Support/YAMLParser.h b/include/llvm/Support/YAMLParser.h
index 1f0fc4828c..cf5706af19 100644
--- a/include/llvm/Support/YAMLParser.h
+++ b/include/llvm/Support/YAMLParser.h
@@ -149,6 +149,8 @@ protected:
OwningPtr<Document> &Doc;
SMRange SourceRange;
+ ~Node();
+
private:
unsigned int TypeID;
StringRef Anchor;
@@ -166,6 +168,9 @@ public:
static inline bool classof(const Node *N) {
return N->getType() == NK_Null;
}
+
+protected:
+ ~NullNode();
};
/// @brief A scalar node is an opaque datum that can be presented as a
@@ -200,6 +205,9 @@ public:
return N->getType() == NK_Scalar;
}
+protected:
+ ~ScalarNode();
+
private:
StringRef Value;
@@ -247,6 +255,9 @@ public:
return N->getType() == NK_KeyValue;
}
+protected:
+ ~KeyValueNode();
+
private:
Node *Key;
Node *Value;
@@ -363,6 +374,9 @@ public:
return N->getType() == NK_Mapping;
}
+protected:
+ ~MappingNode();
+
private:
MappingType Type;
bool IsAtBeginning;
@@ -426,6 +440,9 @@ public:
return N->getType() == NK_Sequence;
}
+protected:
+ ~SequenceNode();
+
private:
SequenceType SeqType;
bool IsAtBeginning;
@@ -451,6 +468,9 @@ public:
return N->getType() == NK_Alias;
}
+protected:
+ ~AliasNode();
+
private:
StringRef Name;
};