mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
[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
This commit is contained in:
parent
e42618b4bc
commit
e8276ef418
@ -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