llvm.org GIT mirror llvm / e8276ef
[yaml2obj][ELF] Add a virtual destructor to the ELFYAML::Section class to prevent memory leaks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206969 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Atanasyan 6 years ago
2 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7878 StringRef Info;
7979 llvm::yaml::Hex64 AddressAlign;
8080 Section(SectionKind Kind) : Kind(Kind) {}
81 virtual ~Section();
8182 };
8283 struct RawContentSection : Section {
8384 object::yaml::BinaryRef Content;
1313 #include "llvm/Object/ELFYAML.h"
1414
1515 namespace llvm {
16
17 ELFYAML::Section ::~Section() {}
18
1619 namespace yaml {
1720
1821 void