mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[yaml2obj][ELF] Add a virtual destructor to the ELFYAML::Section class
to prevent memory leaks. llvm-svn: 206969
This commit is contained in:
parent
72105b1195
commit
6d57f42c12
@ -79,6 +79,7 @@ struct Section {
|
||||
StringRef Info;
|
||||
llvm::yaml::Hex64 AddressAlign;
|
||||
Section(SectionKind Kind) : Kind(Kind) {}
|
||||
virtual ~Section();
|
||||
};
|
||||
struct RawContentSection : Section {
|
||||
object::yaml::BinaryRef Content;
|
||||
|
@ -14,6 +14,9 @@
|
||||
#include "llvm/Object/ELFYAML.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
ELFYAML::Section ::~Section() {}
|
||||
|
||||
namespace yaml {
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user