[llvm-commits] [llvm] r154131 - /llvm/trunk/include/llvm/Support/YAMLParser.h
Kaelyn Uhrain
rikka at google.com
Thu Apr 5 15:11:12 PDT 2012
Author: rikka
Date: Thu Apr 5 17:11:12 2012
New Revision: 154131
URL: http://llvm.org/viewvc/llvm-project?rev=154131&view=rev
Log:
Really fix -Wnon-virtual-dtor warnings; gcc needs the dtors to be
explicitly marked as virtual.
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=154131&r1=154130&r2=154131&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/YAMLParser.h (original)
+++ llvm/trunk/include/llvm/Support/YAMLParser.h Thu Apr 5 17:11:12 2012
@@ -149,7 +149,7 @@
OwningPtr<Document> &Doc;
SMRange SourceRange;
- ~Node();
+ virtual ~Node();
private:
unsigned int TypeID;
@@ -170,7 +170,7 @@
}
protected:
- ~NullNode();
+ virtual ~NullNode();
};
/// @brief A scalar node is an opaque datum that can be presented as a
@@ -206,7 +206,7 @@
}
protected:
- ~ScalarNode();
+ virtual ~ScalarNode();
private:
StringRef Value;
@@ -256,7 +256,7 @@
}
protected:
- ~KeyValueNode();
+ virtual ~KeyValueNode();
private:
Node *Key;
@@ -375,7 +375,7 @@
}
protected:
- ~MappingNode();
+ virtual ~MappingNode();
private:
MappingType Type;
@@ -441,7 +441,7 @@
}
protected:
- ~SequenceNode();
+ virtual ~SequenceNode();
private:
SequenceType SeqType;
@@ -469,7 +469,7 @@
}
protected:
- ~AliasNode();
+ virtual ~AliasNode();
private:
StringRef Name;
More information about the llvm-commits
mailing list