Fix -Wnon-virtual-dtor warnings.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 4 Apr 2012 22:34:55 +0000 (22:34 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 4 Apr 2012 22:34:55 +0000 (22:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154063 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/YAMLParser.h

index 1f0fc4828c7f5a6c7462711ec9e87aede6ebde7c..cf5706af1934fea5b7bd5ee13e0e52f6f3586a54 100644 (file)
@@ -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;
 };