summaryrefslogtreecommitdiff
path: root/include/llvm/Support/YAMLParser.h
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2012-04-05 22:11:12 +0000
committerKaelyn Uhrain <rikka@google.com>2012-04-05 22:11:12 +0000
commit10d8971c00ecf4ec4750ecba7faf94651ec18a3a (patch)
tree63c0714d8709b84e0ac3afe1d39f2a3ef113d941 /include/llvm/Support/YAMLParser.h
parent97d990323607d6eb50a84f672b2169ac4ba1697d (diff)
downloadllvm-10d8971c00ecf4ec4750ecba7faf94651ec18a3a.tar.gz
llvm-10d8971c00ecf4ec4750ecba7faf94651ec18a3a.tar.bz2
llvm-10d8971c00ecf4ec4750ecba7faf94651ec18a3a.tar.xz
Really fix -Wnon-virtual-dtor warnings; gcc needs the dtors to be
explicitly marked as virtual. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/YAMLParser.h')
-rw-r--r--include/llvm/Support/YAMLParser.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Support/YAMLParser.h b/include/llvm/Support/YAMLParser.h
index cf5706af19..85ecc13d96 100644
--- a/include/llvm/Support/YAMLParser.h
+++ b/include/llvm/Support/YAMLParser.h
@@ -149,7 +149,7 @@ protected:
OwningPtr<Document> &Doc;
SMRange SourceRange;
- ~Node();
+ virtual ~Node();
private:
unsigned int TypeID;
@@ -170,7 +170,7 @@ public:
}
protected:
- ~NullNode();
+ virtual ~NullNode();
};
/// @brief A scalar node is an opaque datum that can be presented as a
@@ -206,7 +206,7 @@ public:
}
protected:
- ~ScalarNode();
+ virtual ~ScalarNode();
private:
StringRef Value;
@@ -256,7 +256,7 @@ public:
}
protected:
- ~KeyValueNode();
+ virtual ~KeyValueNode();
private:
Node *Key;
@@ -375,7 +375,7 @@ public:
}
protected:
- ~MappingNode();
+ virtual ~MappingNode();
private:
MappingType Type;
@@ -441,7 +441,7 @@ public:
}
protected:
- ~SequenceNode();
+ virtual ~SequenceNode();
private:
SequenceType SeqType;
@@ -469,7 +469,7 @@ public:
}
protected:
- ~AliasNode();
+ virtual ~AliasNode();
private:
StringRef Name;