[llvm-commits] [llvm] r154063 - /llvm/trunk/include/llvm/Support/YAMLParser.h

Michael J. Spencer bigcheesegs at gmail.com
Wed Apr 4 15:34:55 PDT 2012


Author: mspencer
Date: Wed Apr  4 17:34:55 2012
New Revision: 154063

URL: http://llvm.org/viewvc/llvm-project?rev=154063&view=rev
Log:
Fix -Wnon-virtual-dtor warnings.

Modified:
    llvm/trunk/include/llvm/Support/YAMLParser.h

Modified: llvm/trunk/include/llvm/Support/YAMLParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/YAMLParser.h?rev=154063&r1=154062&r2=154063&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/YAMLParser.h (original)
+++ llvm/trunk/include/llvm/Support/YAMLParser.h Wed Apr  4 17:34:55 2012
@@ -149,6 +149,8 @@
   OwningPtr<Document> &Doc;
   SMRange SourceRange;
 
+  ~Node();
+
 private:
   unsigned int TypeID;
   StringRef Anchor;
@@ -166,6 +168,9 @@
   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 @@
     return N->getType() == NK_Scalar;
   }
 
+protected:
+  ~ScalarNode();
+
 private:
   StringRef Value;
 
@@ -247,6 +255,9 @@
     return N->getType() == NK_KeyValue;
   }
 
+protected:
+  ~KeyValueNode();
+
 private:
   Node *Key;
   Node *Value;
@@ -363,6 +374,9 @@
     return N->getType() == NK_Mapping;
   }
 
+protected:
+  ~MappingNode();
+
 private:
   MappingType Type;
   bool IsAtBeginning;
@@ -426,6 +440,9 @@
     return N->getType() == NK_Sequence;
   }
 
+protected:
+  ~SequenceNode();
+
 private:
   SequenceType SeqType;
   bool IsAtBeginning;
@@ -451,6 +468,9 @@
     return N->getType() == NK_Alias;
   }
 
+protected:
+  ~AliasNode();
+
 private:
   StringRef Name;
 };





More information about the llvm-commits mailing list